Method: Mongoid::Association::Relatable#inverse_type_setter
- Defined in:
- lib/mongoid/association/relatable.rb
#inverse_type_setter ⇒ String
Gets the setter for the field that sets the type of document on a polymorphic association.
235 236 237 |
# File 'lib/mongoid/association/relatable.rb', line 235 def inverse_type_setter @inverse_type_setter ||= "#{inverse_type}=" if inverse_type end |