Methods
D
Instance Protected methods
define_method_attribute=(name)

See define_method_attribute in read.rb for an explanation of this code.

# File activerecord/lib/active_record/attribute_methods/write.rb, line 15
        def define_method_attribute=(name)
          safe_name = name.unpack('h*').first
          generated_attribute_methods::AttrNames.set_name_cache safe_name, name

          generated_attribute_methods.module_eval "            def __temp__#{safe_name}=(value)
              write_attribute(AttrNames::ATTR_#{safe_name}, value)
            end
            alias_method #{(name + '=').inspect}, :__temp__#{safe_name}=
            undef_method :__temp__#{safe_name}=
", __FILE__, __LINE__ + 1
        end