Flowdock
method

define_writers

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: CollectionAssociation
define_writers() 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/builder/collection_association.rb, line 66
      def define_writers
        super

        name = self.name
        model.redefine_method("#{name.to_s.singularize}_ids=") do |ids|
          association(name).ids_writer(ids)
        end
      end
Register or log in to add new notes.