module ActiveRecord::AttributeMethods::Read
def _read_attribute(attr_name) # :nodoc:
breaking compatibility with the read_attribute API
This method exists to avoid the expensive primary_key check internally, without
def _read_attribute(attr_name) # :nodoc: @attributes.fetch_value(attr_name.to_s) { |n| yield n if block_given? } end