Method: Mongoid::Association::Options#touch_field

Defined in:
lib/mongoid/association/options.rb

#touch_fieldnil

The field for saving the associated object’s type.

Returns:

  • (nil)

    Default is nil.



113
114
115
# File 'lib/mongoid/association/options.rb', line 113

def touch_field
  @touch_field ||= options[:touch] if (options[:touch].is_a?(String) || options[:touch].is_a?(Symbol))
end