Sha256: 3dbd4c601965b1aa6e4a6430787516e4958106ccb683b94ce9298c0babc35bee
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
require "timber-rails/active_record" module Timber class Config # Convenience module for accessing the various `Timber::Integrations::*` classes # through the {Timber::Config} object. Timber 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 Timber classes. # # For example: # # config = Timber::Config.instance # config.integrations.active_record.silence = true module Integrations extend self # Convenience method for accessing the {Timber::Integrations::ActiveRecord} class # specific configuration. # # @example # config = Timber::Config.instance # config.integrations.active_record.silence = true def active_record Timber::Integrations::ActiveRecord end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timber-rails-1.0.1 | lib/timber-rails/config/active_record.rb |
timber-rails-1.0.0 | lib/timber-rails/config/active_record.rb |