Sha256: 4bd599178ac459e294f59732da0686f8c19654da72b61d4144b0044dcc9aff02

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 Bytes

Contents

module Capcoauth
  class Engine < Rails::Engine
    initializer 'capcoauth.params.filter' do |app|
      parameters = %w(client_secret code authentication_token access_token refresh_token)
      app.config.filter_parameters << /^(#{Regexp.union parameters})$/
    end

    initializer 'capcoauth.routes' do
      Capcoauth::Rails::Routes.install!
    end

    initializer 'capcoauth.helpers' do
      ActiveSupport.on_load(:action_controller) do
        include Capcoauth::Rails::Helpers
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capcoauth-0.7.0 lib/capcoauth/engine.rb
capcoauth-0.6.3 lib/capcoauth/engine.rb
capcoauth-0.6.2 lib/capcoauth/engine.rb
capcoauth-0.6.1 lib/capcoauth/engine.rb
capcoauth-0.6.0 lib/capcoauth/engine.rb
capcoauth-0.5.1 lib/capcoauth/engine.rb