method

define_write_method

Importance_0
v2.0.3 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::ClassMethods
define_write_method(attr_name) 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/attribute_methods.rb, line 149
        def define_write_method(attr_name)
          evaluate_attribute_method attr_name, "def #{attr_name}=(new_value);write_attribute('#{attr_name}', new_value);end", "#{attr_name}="
        end
Register or log in to add new notes.