Sha256: 34890923c447c3c4f958c9c8e91c2deedf4000c24e240caba8e7070a25ce44b7
Contents?: true
Size: 577 Bytes
Versions: 21
Compression:
Stored size: 577 Bytes
Contents
module Alchemy module Admin class TrashController < Alchemy::Admin::BaseController helper "alchemy/admin/elements" def index @elements = Element.trashed @page = Page.find_by_id(params[:page_id]) @allowed_elements = Element.all_for_page(@page) @draggable_trash_items = {} @elements.each { |e| @draggable_trash_items["element_#{e.id}"] = e.belonging_cellnames(@page) } render :layout => false end def clear @page = Page.find_by_id(params[:page_id]) @elements = Element.trashed @elements.map(&:destroy) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.1.beta5 | app/controllers/alchemy/admin/trash_controller.rb |