module SmartCollection::InstanceMethods

Public Instance Methods

cache_exists?() click to toggle source
# File lib/smart_collection/instance_methods.rb, line 11
def cache_exists?
  smart_collection_mixin.config.cache_manager.cache_exists? self
end
expire_cache() click to toggle source
# File lib/smart_collection/instance_methods.rb, line 7
def expire_cache
  update_column(:cache_expires_at, Time.now - 1)
end
smart_collection_mixin() click to toggle source
# File lib/smart_collection/instance_methods.rb, line 15
def smart_collection_mixin
  self.class.smart_collection_mixin
end
update_cache() click to toggle source
# File lib/smart_collection/instance_methods.rb, line 3
def update_cache
  smart_collection_mixin.config.cache_manager.update self
end