method
load_target
load_target()
protected
Hide source
# File activerecord/lib/active_record/associations/association_collection.rb, line 347 def load_target if !@owner.new_record? || foreign_key_present begin if !loaded? if @target.is_a?(Array) && @target.any? @target = find_target + @target.find_all {|t| t.new_record? } else @target = find_target end end rescue ActiveRecord::RecordNotFound reset end end loaded if target target end