Configuring before process hook for rollbar gem on initializer does not support method before_process

310 views Asked by At

My rollbar gem (1.2.13) initializer setup:

Rollbar.configure do |config|
  config.before_process << handler
end

This config is raising no method error. Any one could report a success case or any tip?

undefined method 'before_process' for #<Rollbar::Configuration:0x007f34b6a4d6b0> (NoMethodError)

1

There are 1 answers

0
Jon de Andrés On

Rollbar::Configuration#before_process was added in version 2.8.0 of the gem, https://github.com/rollbar/rollbar-gem/blob/master/CHANGELOG.md#280.