method

define_writers

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: Association
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/association.rb, line 45
      def define_writers
        name = self.name

        model.redefine_method("#{name}=") do |value|
          association(name).writer(value)
        end
      end
Register or log in to add new notes.