Included Modules

Files

Class Index [+]

Quicksearch

ActiveRecord::Associations::HasOneThroughAssociation

Public Instance Methods

replace(new_value) click to toggle source
    # File lib/active_record/associations/has_one_through_association.rb, line 9
 9:       def replace(new_value)
10:         create_through_record(new_value)
11:         @target = new_value
12:       end

Private Instance Methods

find_target() click to toggle source
    # File lib/active_record/associations/has_one_through_association.rb, line 35
35:       def find_target
36:         with_scope(construct_scope) { @reflection.klass.find(:first) }
37:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.