Method: Mongoid::Association::Options#touch_field
- Defined in:
- lib/mongoid/association/options.rb
#touch_field ⇒ nil
The field for saving the associated object’s type.
113 114 115 |
# File 'lib/mongoid/association/options.rb', line 113 def touch_field @touch_field ||= [:touch] if ([:touch].is_a?(String) || [:touch].is_a?(Symbol)) end |