Loads the \target if needed and returns it.
This method is abstract in the sense that it relies on find_target, which is expected to be provided by descendants.
# File activerecord/lib/active_record/associations/association_proxy.rb, line 236 def load_target return nil unless defined?(@loaded) if !loaded? and (!@owner.new_record? || foreign_key_present) @target = find_target end @loaded = true @target rescue ActiveRecord::RecordNotFound reset end