Class: AppSweeper

Inherits:
ActionController::Caching::Sweeper
  • Object
show all
Defined in:
lib/eco_apps_master/models/app_sweeper.rb

Instance Method Summary collapse

Instance Method Details

#after_create(obj) ⇒ Object



4
5
6
# File 'lib/eco_apps_master/models/app_sweeper.rb', line 4

def after_create(obj)
  expire_cache_for(obj)
end

#after_destroy(obj) ⇒ Object



8
9
10
# File 'lib/eco_apps_master/models/app_sweeper.rb', line 8

def after_destroy(obj)
  expire_cache_for(obj)
end

#after_update(obj) ⇒ Object



12
13
14
# File 'lib/eco_apps_master/models/app_sweeper.rb', line 12

def after_update(obj)
  expire_cache_for(obj)
end