Class: Clamour::Configuration
- Inherits:
-
Object
- Object
- Clamour::Configuration
show all
- Extended by:
- ActiveSupport::Autoload
- Includes:
- Base
- Defined in:
- lib/clamour/configuration.rb
Defined Under Namespace
Modules: Base
Classes: RabbitMqConfiguration
Instance Method Summary
collapse
Methods included from Base
#eql?, #hash
Instance Method Details
#default_enable_connection ⇒ Boolean
24
25
26
|
# File 'lib/clamour/configuration.rb', line 24
def default_enable_connection
!(defined?(Rails) && Rails.env.test?)
end
|
#default_logger ⇒ Logger
19
20
21
|
# File 'lib/clamour/configuration.rb', line 19
def default_logger
MonoLogger.new(STDERR)
end
|
#enable_connection? ⇒ Boolean
29
30
31
|
# File 'lib/clamour/configuration.rb', line 29
def enable_connection?
enable_connection
end
|