method
cacheable_column?
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Read::ClassMethods
cacheable_column?(column)private
No documentation available.
# File activerecord/lib/active_record/attribute_methods/read.rb, line 95
def cacheable_column?(column)
if attribute_types_cached_by_default == ATTRIBUTE_TYPES_CACHED_BY_DEFAULT
! serialized_attributes.include? column.name
else
attribute_types_cached_by_default.include?(column.type)
end
end