method

target=

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: CollectionAssociation
target=(record) public

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/collection_association.rb, line 288
      def target=(record)
        return super unless ActiveRecord::Base.has_many_inversing

        case record
        when Array
          super
        else
          add_to_target(record, skip_callbacks: true, replace: true)
        end
      end
Register or log in to add new notes.