class Stacks::ModelExtensions
Public Class Methods
bust_cache_for_column(model, column)
click to toggle source
# File lib/stacks/model_extensions.rb, line 7 def self.bust_cache_for_column(model, column) bust_cache_for_columns(model, [column]) end
bust_cache_for_columns(model, columns)
click to toggle source
# File lib/stacks/model_extensions.rb, line 11 def self.bust_cache_for_columns(model, columns) Stacks.model_listening_caches.each do |cache| cache.bust_cache(model, columns) end end
watched_models()
click to toggle source
# File lib/stacks/model_extensions.rb, line 3 def self.watched_models @watched_models ||= Set.new end