define_method_attribute=(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/write.rb, line 15
          def define_method_attribute=(name)
            ActiveModel::AttributeMethods::AttrNames.define_attribute_accessor_method(
              generated_attribute_methods, name, writer: true,
            ) do |temp_method_name, attr_name_expr|
              generated_attribute_methods.module_eval                 def #{temp_method_name}(value)                  name = #{attr_name_expr}                  _write_attribute(name, value)                end, __FILE__, __LINE__ + 1
            end
          end
Register or log in to add new notes.