Sha256: 622fc2da18991715d12641bf961605be13666742031ad407500a2324eba961dd

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

class << Rails
  def vendor_rails?
    false
  end
end

require "yaml"
YAML::ENGINE.yamler= "syck" # see http://stackoverflow.com/questions/4980877/rails-error-couldnt-parse-yaml

Rails::Initializer.run do |config|
  config.frameworks = [ :action_controller ]
  config.action_controller.session = { :key=>"_myapp_session", :secret=>"Stay hungry. Stay foolish. -- Steve Jobs" }

  config.after_initialize do
    config.oauth.database = DATABASE
    config.oauth.host = "example.org"
    config.oauth.authenticator = lambda do |username, password|
      "Batman" if username == "cowbell" && password == "more"
    end
  end
  config.middleware.use Rack::OAuth2::Server::Admin.mount
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-oauth2-server-2.4.0 test/rails2/config/environment.rb