Class: Renalware::Admin::CacheController
- Inherits:
-
BaseController
- Object
- ApplicationController
- Renalware::ApplicationController
- BaseController
- Renalware::Admin::CacheController
- Defined in:
- app/controllers/renalware/admin/cache_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#destroy ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/renalware/admin/cache_controller.rb', line 12 def destroy [:renalware, :admin, :cache], :destroy? Rails.cache.clear redirect_to admin_cache_path, notice: "Cache successfully cleared" end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/renalware/admin/cache_controller.rb', line 8 def show [:renalware, :admin, :cache], :show? end |