Module: CurationConcerns::ActAsAdminController

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/curation_concerns/act_as_admin_controller.rb

Overview

Behavior to allow any controller to be displayed within the administrative dashboard

Example useage:

module CurationConcerns
  class Admin::MyController < ApplicationController
    include CurationConcerns::ActAsAdminController

    # do my stuff ...
  end
end

Instance Method Summary collapse

Instance Method Details

#load_configurationObject



21
22
23
# File 'app/controllers/concerns/curation_concerns/act_as_admin_controller.rb', line 21

def load_configuration
  @configuration = CurationConcerns::AdminController.configuration
end