Class: CacheManager::KeysController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CacheManager::KeysController
- Defined in:
- app/controllers/cache_manager/keys_controller.rb
Instance Method Summary collapse
Instance Method Details
#flush ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/cache_manager/keys_controller.rb', line 13 def flush @key = Key.flush(params[:key]) respond_to do |format| format.html { redirect_to keys_url, notice: 'Keys were successfully flushed.' } end end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/cache_manager/keys_controller.rb', line 5 def index @keys = Key.all end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/cache_manager/keys_controller.rb', line 9 def show @key = Key.find(params[:id]) end |