instance method
reflect_on_all_autosave_associations
Ruby on Rails 4.2.9
Since v2.3.18Signature
reflect_on_all_autosave_associations()
Returns an array of AssociationReflection objects for all associations which have :autosave enabled.
@api public
Source
# File activerecord/lib/active_record/reflection.rb, line 122
def reflect_on_all_autosave_associations
reflections.values.select { |reflection| reflection.options[:autosave] }
end
Defined in activerecord/lib/active_record/reflection.rb line 122
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::ClassMethods