Sha256: 68a86a9382433d24fc216c19a4b87f527b19588c79b8985e6ae67d4d22aee07c

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 Bytes

Contents

module Doorkeeper
  class Engine < Rails::Engine
    initializer "doorkeeper.params.filter" do |app|
      app.config.filter_parameters += [:client_secret, :code, :token]
    end

    initializer "doorkeeper.locales" do |app|
      if app.config.i18n.fallbacks.blank?
        app.config.i18n.fallbacks = [:en]
      end
    end

    initializer "doorkeeper.routes" do
      Doorkeeper::Rails::Routes.install!
    end

    initializer "doorkeeper.helpers" do
      ActiveSupport.on_load(:action_controller) do
        include Doorkeeper::Rails::Helpers
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
doorkeeper-4.0.0.rc2 lib/doorkeeper/engine.rb
doorkeeper-4.0.0.rc1 lib/doorkeeper/engine.rb
doorkeeper-3.1.0 lib/doorkeeper/engine.rb
doorkeeper-3.0.1 lib/doorkeeper/engine.rb
doorkeeper-2.2.2 lib/doorkeeper/engine.rb
doorkeeper-3.0.0 lib/doorkeeper/engine.rb
doorkeeper-3.0.0.rc2 lib/doorkeeper/engine.rb
doorkeeper-3.0.0.rc1 lib/doorkeeper/engine.rb