method
target_reflection_has_associated_record?
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyThroughAssociation
target_reflection_has_associated_record?()private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 107
def target_reflection_has_associated_record?
if through_reflection.macro == :belongs_to && owner[through_reflection.foreign_key].blank?
false
else
true
end
end