module ActiveRecord::AttributeMethods::Read::ClassMethods
Protected Instance Methods
cached_attributes_deprecation_warning(method_name)
click to toggle source
# File lib/active_record/attribute_methods/read.rb, line 48 def cached_attributes_deprecation_warning(method_name) ActiveSupport::Deprecation.warn "Calling `#{method_name}` is no longer necessary. All attributes are cached." end
define_method_attribute(name)
click to toggle source
# File lib/active_record/attribute_methods/read.rb, line 53 def define_method_attribute(name) method = ReaderMethodCache[name] generated_attribute_methods.module_eval { define_method name, method } end