Sha256: aa2880ad779f27f0d010877f08cdcc78b2b0cd654883c888189b081dc7524ac0

Contents?: true

Size: 467 Bytes

Versions: 14

Compression:

Stored size: 467 Bytes

Contents

module Capcoauth
  class Engine < Rails::Engine
    initializer 'capcoauth.params.filter' do |app|
      parameters = %w'code access_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

14 entries across 14 versions & 1 rubygems

Version Path
capcoauth-0.5.0 lib/capcoauth/engine.rb
capcoauth-0.4.0 lib/capcoauth/engine.rb
capcoauth-0.3.3 lib/capcoauth/engine.rb
capcoauth-0.3.2 lib/capcoauth/engine.rb
capcoauth-0.3.1 lib/capcoauth/engine.rb
capcoauth-0.3.0 lib/capcoauth/engine.rb
capcoauth-0.2.3 lib/capcoauth/engine.rb
capcoauth-0.2.2 lib/capcoauth/engine.rb
capcoauth-0.2.1 lib/capcoauth/engine.rb
capcoauth-0.2.0 lib/capcoauth/engine.rb
capcoauth-0.1.4 lib/capcoauth/engine.rb
capcoauth-0.1.3 lib/capcoauth/engine.rb
capcoauth-0.1.2 lib/capcoauth/engine.rb
capcoauth-0.1.1 lib/capcoauth/engine.rb