Sha256: 97ccb70e298e68ff43fe55f38a148e7ae903b164bb9bcb67efd8764fc799f07c

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

class Grape::Middleware::Lograge::Railtie < Rails::Railtie
  initializer 'grape.middleware.lograge', after: :load_config_initializers do
    Grape::Middleware::Lograge.filter = ActionDispatch::Http::ParameterFilter.new Rails.application.config.filter_parameters

    require 'lograge'
    ::Lograge::RequestLogSubscriber.attach_to :grape
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-middleware-lograge-1.1.0 lib/grape/middleware/lograge/railtie.rb
grape-middleware-lograge-1.0.0 lib/grape/middleware/lograge/railtie.rb