Sha256: 4d6fea55a05828fc38dcc1b5575ad9fe276451ca7e130d58f3e0d2545f21f43f

Contents?: true

Size: 658 Bytes

Versions: 11

Compression:

Stored size: 658 Bytes

Contents

require "rack/oauth2/server"
require "rack/oauth2/rails"
require "rails"

module Rack
  module OAuth2
    class Server
      # Rails 3.x integration.
      class Railtie < ::Rails::Railtie # :nodoc:
        config.oauth = Server::Options.new

        initializer "rack-oauth2-server" do |app|
          app.middleware.use ::Rack::OAuth2::Server, app.config.oauth
          config.oauth.logger ||= ::Rails.logger
          class ::ActionController::Base
            helper ::Rack::OAuth2::Rails::Helpers
            include ::Rack::OAuth2::Rails::Helpers
            extend ::Rack::OAuth2::Rails::Filters
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rack-oauth2-server-2.2.2 lib/rack/oauth2/server/railtie.rb
tpitale-rack-oauth2-server-2.2.1.2 lib/rack/oauth2/server/railtie.rb
tpitale-rack-oauth2-server-2.2.1.1 lib/rack/oauth2/server/railtie.rb
tpitale-rack-oauth2-server-2.2.1 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.2.1 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.2.0 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.1.0 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.0.1 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.0.0 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.0.0.beta6 lib/rack/oauth2/server/railtie.rb
rack-oauth2-server-2.0.0.beta5 lib/rack/oauth2/server/railtie.rb