method

define_method_attribute=

define_method_attribute=(name, owner:)
private

No documentation available.

# File activerecord/lib/active_record/attribute_methods/write.rb, line 14
          def define_method_attribute=(name, owner))
            ActiveModel::AttributeMethods::AttrNames.define_attribute_accessor_method(
              owner, name, writer: true,
            ) do |temp_method_name, attr_name_expr|
              owner <<
                "def #{temp_method_name}(value)" <<
                "  _write_attribute(#{attr_name_expr}, value)" <<
                "end"
            end
          end