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

Version Path
padrino-admin-0.9.24 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.23 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.22 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.21 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.20 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.19 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.18 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.17 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.16 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.15 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.14 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.13 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.12 lib/padrino-admin/generators/templates/app/app.rb
padrino-admin-0.9.11 lib/padrino-admin/generators/templates/app/app.rb