Sha256: 7b5eb0393e350df25b49ec8225121673f42fef462600dc42f056e0c39f277c8b
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
require "action_controller/railtie" module MyApp class Application < Rails::Application config.session_store :cookie_store, :key=>"_my_app_session" config.secret_token = "Stay hungry. Stay foolish. -- Steve Jobs" config.active_support.deprecation = :stderr config.after_initialize do config.oauth.database = DATABASE config.oauth.scopes = %w{read write time-travel} config.oauth.host = "example.org" config.oauth.authenticator = lambda do |username, password| "Batman" if username == "cowbell" && password == "more" end config.middleware.use Rack::OAuth2::Server::Admin.mount end end end Rails.application.config.root = File.dirname(__FILE__) + "/.." require Rails.root + "config/routes"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-oauth2-server-1.4.6 | test/rails3/config/application.rb |