Class: SolidWebUi::Cache::EntriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- SolidWebUi::Cache::EntriesController
- Defined in:
- app/controllers/solid_web_ui/cache/entries_controller.rb
Instance Method Summary collapse
Instance Method Details
#clear ⇒ Object
13 14 15 16 |
# File 'app/controllers/solid_web_ui/cache/entries_controller.rb', line 13 def clear SolidCache::Entry.delete_all redirect_to root_path, notice: "Cache cleared." end |
#index ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/solid_web_ui/cache/entries_controller.rb', line 7 def index scope = SolidCache::Entry.order(id: :desc) @paginator = SolidWebUi::Paginator.new(scope, page: params[:page], per_page: per_page) @entries = @paginator.records end |