Class: Admin::TrashController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::TrashController
- Defined in:
- app/controllers/admin/trash_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/controllers/admin/trash_controller.rb', line 11 def index @datatable = Effective::Datatables::Trash.new() @page_title = 'Trash' EffectiveTrash.(self, :index, Effective::Trash) EffectiveTrash.(self, :admin, :effective_trash) end |
#show ⇒ Object
19 20 21 22 23 24 25 |
# File 'app/controllers/admin/trash_controller.rb', line 19 def show @trash = Effective::Trash.all.find(params[:id]) @page_title = "Trash item - #{@trash.to_s}" EffectiveTrash.(self, :show, @trash) EffectiveTrash.(self, :admin, :effective_trash) end |