Sha256: b863a32ceb2c5ed8646ba81cfeb0eff95ab7354ac7e7537dbe5e3055f01c6c55

Contents?: true

Size: 796 Bytes

Versions: 7

Compression:

Stored size: 796 Bytes

Contents

module Doorkeeper
  class Engine < Rails::Engine
    initializer "doorkeeper.params.filter" do |app|
      parameters = %w[client_secret code authentication_token access_token refresh_token]
      app.config.filter_parameters << /^(#{Regexp.union parameters})$/
    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

    if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 4
      initializer 'doorkeeper.assets.precompile' do |app|
        app.config.assets.precompile += %w[
          doorkeeper/application.css
          doorkeeper/admin/application.css
        ]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/engine.rb
doorkeeper-4.4.2 lib/doorkeeper/engine.rb
doorkeeper-4.4.1 lib/doorkeeper/engine.rb
doorkeeper-4.4.0 lib/doorkeeper/engine.rb
doorkeeper-4.3.2 lib/doorkeeper/engine.rb
doorkeeper-4.3.1 lib/doorkeeper/engine.rb
doorkeeper-4.3.0 lib/doorkeeper/engine.rb