Class: Alchemy::Admin::TrashController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- BaseController
- Alchemy::Admin::TrashController
- Defined in:
- app/controllers/alchemy/admin/trash_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods included from Modules
included, #module_definition_for, register_module
Methods included from Alchemy::AbilityHelper
Methods included from ConfigurationMethods
#configuration, #multi_language?, #multi_site?, #prefix_locale?
Instance Method Details
#clear ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/alchemy/admin/trash_controller.rb', line 14 def clear @page = Page.find(params[:page_id]) @elements = Element.trashed @elements.map(&:destroy) end |
#index ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/alchemy/admin/trash_controller.rb', line 8 def index @elements = Element.trashed @page = Page.find(params[:page_id]) @allowed_elements = @page.available_element_definitions end |