Sha256: 2b6377ded7709908102dfac397b7cb251b1ad6872fc2ac329d029d4db852548c
Contents?: true
Size: 1020 Bytes
Versions: 5
Compression:
Stored size: 1020 Bytes
Contents
Cmor::Blog::Backend.configure do |config| # Set the resources, that will be shown in the backend menu. # # Default: config.registered_controllers = -> {[ # Cmor::Blog::Backend::PostsController, # Cmor::Blog::Backend::AssetDetailsController # ]} # config.registered_controllers = -> {[ Cmor::Blog::Backend::PostsController, Cmor::Blog::Backend::AssetDetailsController ]} # Set the services, that will be shown in the backend menu. # # Default: config.registered_services = -> {[ # ]} # config.registered_services = -> {[ ]} # This proc is used in context of the PostsController to retrieve the current # user to userstamp created/updated posts. # # default: config.current_user_proc = ->(controller) { controller.respond_to?(:current_user, true) ? controller.send(:current_user) : nil } # config.current_user_proc = ->(controller) { controller.respond_to?(:current_user, true) ? controller.send(:current_user) : nil } end
Version data entries
5 entries across 5 versions & 1 rubygems