Sha256: 6c05d6e56fc00cb43b2a3644037bd86e50927805ad01c88543444d2b91cda6df

Contents?: true

Size: 1017 Bytes

Versions: 17

Compression:

Stored size: 1017 Bytes

Contents

require "logtail-rails/action_view"

module Logtail
  class Config
    # Convenience module for accessing the various `Logtail::Integrations::*` classes
    # through the {Logtail::Config} object. Logtail couples configuration with the class
    # responsible for implementing it. This provides for a tighter design, but also
    # requires the user to understand and access the various classes. This module aims
    # to provide a simple ruby-like configuration interface for internal Logtail classes.
    #
    # For example:
    #
    #     config = Logtail::Config.instance
    #     config.integrations.active_record.silence = true
    module Integrations
      extend self

      # Convenience method for accessing the {Logtail::Integrations::ActionView} class
      # specific configuration.
      #
      # @example
      #   config = Logtail::Config.instance
      #   config.integrations.action_view.silence = true
      def action_view
        Logtail::Integrations::ActionView
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
logtail-rails-0.2.8 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.7 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.6 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.5 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.4 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.3 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.2 lib/logtail-rails/config/action_view.rb
logtail-rails-0.2.1 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.8 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.7 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.6 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.5 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.4 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.3 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.2 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.1 lib/logtail-rails/config/action_view.rb
logtail-rails-0.1.0 lib/logtail-rails/config/action_view.rb