Flowdock
method

find_target

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::HasOneAssociation
find_target() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/has_one_association.rb, line 81
        def find_target
          options = @reflection.options.dup
          (options.keys - [:select, :order, :include, :readonly]).each do |key|
            options.delete key
          end
          options[:conditions] = @finder_sql

          the_target = @reflection.klass.find(:first, options)
          set_inverse_instance(the_target, @owner)
          the_target
        end
Register or log in to add new notes.