method
target_reflection_has_associated_record?
v3.0.0 -
Show latest stable
-
0 notes -
Class: ActiveRecord::Associations::HasManyThroughAssociation
target_reflection_has_associated_record?()
protected
Hide source
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 48 def target_reflection_has_associated_record? if @reflection.through_reflection.macro == :belongs_to && @owner[@reflection.through_reflection.primary_key_name].blank? false else true end end