instance method
cache_attribute?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
cache_attribute?(attr_name)
Returns true if the provided attribute is being cached.
Parameters
-
attr_namereq
Source
# File activerecord/lib/active_record/attribute_methods.rb, line 125
def cache_attribute?(attr_name)
cached_attributes.include?(attr_name)
end
Defined in activerecord/lib/active_record/attribute_methods.rb line 125
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::ClassMethods