'Loading class in application.rb
Hey I am trying to list classes for Honeybadger to ignore. The following code is used to ignore certain classes of errors:
config/initializers/honeybadger.rb:
config.before_notify do |notice|
notice.halt! if config.honeybadger_error_exceptions.include?(notice.class)
end
application.rb:
config.honeybadger_error_exceptions = [
SomeModule::SomeCustomerError
]
however I get an uninitialized constant error (even when going into rails console). How can i make application.rb see that the class exists?
Solution 1:[1]
Have you tried ignoring that class using the configuration file?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Benjamin Curtis |
