Module: BulletBoard
- Defined in:
- lib/bullet-board.rb,
lib/bullet-board/version.rb
Defined Under Namespace
Classes: ConfigurationError
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.enable(&block) ⇒ Object
def self.enable_with_dependencies; end.
Class Method Details
.enable(&block) ⇒ Object
def self.enable_with_dependencies; end
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bullet-board.rb', line 9 def self.enable &block configure_with_defaults block.call if block_given? rescue ConfigurationError => e Rails.logger.error "Error: #{e.}" # change to false because we just want the customized logger # currently looping twice through UniformNotifier.active_notifiers in # Bullet#for_each_active_notifier_with_notification ensure Bullet.bullet_logger = false print_success_notification_to_stderr if Bullet.web_logger_enabled? end |