Class: Rollbar::Mode::Development

Inherits:
Object
  • Object
show all
Defined in:
lib/rollbar/mode/development.rb

Overview

Rollbar development minor mode

Class Method Summary collapse

Class Method Details

.applyObject

:reek:TooManyStatements



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rollbar/mode/development.rb', line 11

def apply
  Rollbar.reset_notifier!
  Rollbar.notifier = Rollbar::Mode::LocalNotifier.new

  Rollbar.configure do |config|
    config.enabled = false
    config.raise_on_error = true
  end

  warn 'Rollbar: disabled, errors re-raised automatically'
end