Module: GraphqlRails::Integrations::Lograge
- Defined in:
- lib/graphql_rails/integrations/lograge.rb
Overview
lograge integration
usage: add ‘GraphqlRails::Integrations::Lograge.enable` in your initializers
Defined Under Namespace
Classes: GraphqlActionControllerSubscriber
Class Method Summary collapse
Class Method Details
.active? ⇒ Boolean
34 35 36 |
# File 'lib/graphql_rails/integrations/lograge.rb', line 34 def self.active? !defined?(Rails) || Rails.configuration&.lograge&.enabled end |
.enable ⇒ Object
28 29 30 31 32 |
# File 'lib/graphql_rails/integrations/lograge.rb', line 28 def self.enable return unless active? GraphqlActionControllerSubscriber.attach_to :graphql_action_controller end |