Sha256: 938e7d9484a43679705ee0ee9775ee4f79714a43cab5ee1063ec730b31dc9e97
Contents?: true
Size: 1.06 KB
Versions: 14
Compression:
Stored size: 1.06 KB
Contents
class Admin < Padrino::Application register Padrino::Mailer register Padrino::Helpers register Padrino::Admin::AccessControl ## # Application configuration options # # set :raise_errors, true # Show exceptions (default for development) # set :public, "foo/bar" # Location for static assets (default root/public) # set :reload, false # Reload application files (default in development) # set :default_builder, "foo" # Set a custom form builder (default 'StandardFormBuilder') # set :locale_path, "bar" # Set path for I18n translations (default your_app/locales) # enable :sessions # Disabled by default # disable :flash # Disables rack-flash (enabled by default if sessions) # layout :my_layout # Layout can be in views/layouts/foo.ext or views/foo.ext (default :application) # set :login_page, "/admin/sessions/new" disable :store_location access_control.roles_for :any do |role| role.protect "/" role.allow "/sessions" end access_control.roles_for :admin do |role| end end
Version data entries
14 entries across 14 versions & 1 rubygems