Flowdock
define_method_attribute(name, owner:) 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/read.rb, line 10
          def define_method_attribute(name, owner))
            ActiveModel::AttributeMethods::AttrNames.define_attribute_accessor_method(
              owner, name
            ) do |temp_method_name, attr_name_expr|
              owner <<
                "def #{temp_method_name}" <<
                "  _read_attribute(#{attr_name_expr}) { |n| missing_attribute(n, caller) }" <<
                "end"
            end
          end
Register or log in to add new notes.