lib/timber/config/integrations.rb in timber-2.6.2 vs lib/timber/config/integrations.rb in timber-3.0.0

- old
+ new

@@ -1,11 +1,5 @@ -require "timber/config/integrations/rack" -require "timber/integrations/action_controller" -require "timber/integrations/action_view" -require "timber/integrations/active_record" -require "timber/integrations/rack" - module Timber class Config # Convenience module for accessing the various `Timber::Integrations::*` classes # through the {Timber::Config} object. Timber couples configuration with the class # responsibls for implementing it. This provides for a tighter design, but also @@ -16,48 +10,8 @@ # # config = Timber::Config.instance # config.integrations.active_record.silence = true module Integrations extend self - - # Convenience method for accessing the {Timber::Integrations::ActionController} class - # specific configuration. - # - # @example - # config = Timber::Config.instance - # config.integrations.action_controller.silence = true - def action_controller - Timber::Integrations::ActionController - end - - # Convenience method for accessing the {Timber::Integrations::ActionView} class - # specific configuration. - # - # @example - # config = Timber::Config.instance - # config.integrations.action_view.silence = true - def action_view - Timber::Integrations::ActionView - end - - # 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 - - # Convenience method for accessing the various `Timber::Integrations::Rack::*` - # classes. See {Rack} for a list of methods available. - # - # @example - # config = Timber::Config.instance - # config.integrations.rack.http_events.enabled = true - def rack - Rack - end end end -end \ No newline at end of file +end