Class: Renalware::Admin::CacheController

Inherits:
BaseController show all
Defined in:
app/controllers/renalware/admin/cache_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#destroyObject



12
13
14
15
16
# File 'app/controllers/renalware/admin/cache_controller.rb', line 12

def destroy
  authorize [:renalware, :admin, :cache], :destroy?
  Rails.cache.clear
  redirect_to admin_cache_path, notice: "Cache successfully cleared"
end

#showObject



8
9
10
# File 'app/controllers/renalware/admin/cache_controller.rb', line 8

def show
  authorize [:renalware, :admin, :cache], :show?
end