Method: Dynamoid::Document::ClassMethods#inheritance_field
- Defined in:
- lib/dynamoid/document.rb
#inheritance_field ⇒ Object
Returns the field name used to support STI for this table.
Default field name is type but it can be overrided in the table method call.
User.inheritance_field # => :type
61 62 63 |
# File 'lib/dynamoid/document.rb', line 61 def inheritance_field [:inheritance_field] || :type end |