Sha256: 3a31a2badd0d3c486f61922588eefbef194f5b68ee057cac274089df4e5276eb

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

require 'graphql/rails_logger/subscriber'

module GraphQL
  module RailsLogger
    class Railtie < Rails::Railtie
      initializer 'graphql.unsubscribe_default_logger' do
        ActiveSupport::Notifications.unsubscribe 'start_processing.action_controller'
        Subscriber.attach_to :action_controller
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-rails_logger-1.2.5 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.2.4 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.2.3 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.2.2 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.2.1 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.2.0 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.1.0 lib/graphql/rails_logger/railtie.rb
graphql-rails_logger-1.0.0 lib/graphql/rails_logger/railtie.rb