Class: Admin::TrashController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/trash_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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.authorized?(self, :index, Effective::Trash)
  EffectiveTrash.authorized?(self, :admin, :effective_trash)
end

#showObject



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.authorized?(self, :show, @trash)
  EffectiveTrash.authorized?(self, :admin, :effective_trash)
end