Method: Mongoid::Relations::Metadata#type_setter
- Defined in:
- lib/mongoid/relations/metadata.rb
#type_setter ⇒ String
Gets the setter for the field that sets the type of document on a polymorphic relation.
688 689 690 |
# File 'lib/mongoid/relations/metadata.rb', line 688 def type_setter @type_setter ||= type ? "#{type}=" : nil end |