Sha256: 4ed08e338040e8b6f1ed27a16d5950de4ac4fe05483c12d5a6fa4a9bff9d4ea0
Contents?: true
Size: 619 Bytes
Versions: 13
Compression:
Stored size: 619 Bytes
Contents
module CurationConcerns # 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 # module ActAsAdminController extend ActiveSupport::Concern included do before_action :load_configuration layout 'admin' end def load_configuration @configuration = CurationConcerns::AdminController.configuration end end end
Version data entries
13 entries across 13 versions & 1 rubygems