Flowdock
method

define_read_method

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::AttributeMethods::Read::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

define_read_method(method_name, attr_name, column) private

Define an attribute reader method. Cope with nil column. method_name is the same as attr_name except when a non-standard primary key is used, we still define #id as an accessor for the key

Show source
Register or log in to add new notes.