method
find_from_target?
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
find_from_target?()public
No documentation available.
# File activerecord/lib/active_record/associations/collection_association.rb, line 304
def find_from_target?
loaded? ||
owner.strict_loading? ||
reflection.strict_loading? ||
owner.new_record? ||
target.any? { |record| record.new_record? || record.changed? }
end