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
55 56 57 |
# File 'lib/dynamoid/document.rb', line 55 def inheritance_field [:inheritance_field] || :type end |