Sha256: b10da54e67b869e55c9d9313b00c2dc4947b538108b828f4df1916455e8dcf1b
Contents?: true
Size: 646 Bytes
Versions: 18
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true 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_action :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
18 entries across 18 versions & 1 rubygems