Sha256: 93679c15943e685c646c93543bb5ab2b36cc6effe65781524b84805b5bcd1f84
Contents?: true
Size: 614 Bytes
Versions: 78
Compression:
Stored size: 614 Bytes
Contents
module ActiveAdmin # All Pages controllers inherit from this controller. class PageController < BaseController # Active admin actions don't require layout. All custom actions do. ACTIVE_ADMIN_ACTIONS = [:index] actions :index before_filter :authorize_access! def index(options={}, &block) render "active_admin/page/index" end def clear_page_actions! active_admin_config.clear_page_actions! end private def authorize_access! permission = action_to_permission(params[:action]) authorize! permission, active_admin_config end end end
Version data entries
78 entries across 78 versions & 7 rubygems