Sha256: 3547ad81c735f7ef845f012834a8be3d1df1ab4997bc724f8c3f3524a08bb144
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 Bytes
Contents
# This copies the permissions of The Logs controller module Admin class TrashController < ApplicationController respond_to?(:before_action) ? before_action(:authenticate_user!) : before_filter(:authenticate_user!) # Devise layout (EffectiveLogging.layout.kind_of?(Hash) ? EffectiveLogging.layout[:admin_trash] : EffectiveLogging.layout) skip_log_page_views quiet: true helper EffectiveLoggingHelper def index @datatable = Effective::Datatables::Trash.new() @page_title = 'Trash' EffectiveLogging.authorized?(self, :restore, Effective::Log) EffectiveLogging.authorized?(self, :admin, :effective_logging) end def show @trash = Effective::Log.trash.find(params[:id]) @page_title = "Trash item - #{@trash.to_s}" EffectiveLogging.authorized?(self, :restore, @trash) EffectiveLogging.authorized?(self, :admin, :effective_logging) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_logging-1.7.1 | app/controllers/admin/trash_controller.rb |
effective_logging-1.7.0 | app/controllers/admin/trash_controller.rb |