instance method replace

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

replace(new_value)

No documentation comment.

Parameters

new_value req
Source
# File activerecord/lib/active_record/associations/has_one_through_association.rb, line 9
      def replace(new_value)
        create_through_record(new_value)
        @target = new_value
      end

Defined in activerecord/lib/active_record/associations/has_one_through_association.rb line 9 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Associations::HasOneThroughAssociation

Type at least 2 characters to search.

↑↓ navigate · open · esc close