Flowdock
method

add_to_target

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: CollectionAssociation
add_to_target(record, skip_callbacks = false, &block) 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 399
      def add_to_target(record, skip_callbacks = false, &block)
        if association_scope.distinct_value
          index = @target.index(record)
        end
        replace_on_target(record, index, skip_callbacks, &block)
      end
Register or log in to add new notes.