Sha256: f37b6ec3dc2f3a0a53ed88e351b8297c18a5c1504d30e1a4ee8f828054c10d13

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

module Sparrow
  class Railtie < Rails::Railtie
    initializer 'sparrow.insert_middleware' do |app|
      # handle request
      app.config.middleware.insert_after Rails::Rack::Logger,
                                          Sparrow::RequestMiddleware
      # handle response
      app.config.middleware.use Sparrow::ResponseMiddleware
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cp-sparrow-0.0.16 lib/sparrow/railtie.rb
cp-sparrow-0.0.15 lib/sparrow/railtie.rb