lib/generators/airbrake_initializer.rb.erb in airbrake-5.0.2 vs lib/generators/airbrake_initializer.rb.erb in airbrake-5.0.3
- old
+ new
@@ -36,16 +36,19 @@
c.logger = Rails.logger
# Configures the environment the application is running in. Helps the Airbrake
# dashboard to distinguish between exceptions occurring in different
# environments. By default, it's not set.
+ # NOTE: This option must be set in order to make the 'ignore_environments'
+ # option work.
# https://github.com/airbrake/airbrake-ruby#environment
c.environment = Rails.env
# Setting this option allows Airbrake to filter exceptions occurring in
# unwanted environments such as :test. By default, it is equal to an empty
# Array, which means Airbrake Ruby sends exceptions occurring in all
# environments.
+ # NOTE: This option *does not* work if you don't set the 'environment' option.
# https://github.com/airbrake/airbrake-ruby#ignore_environments
c.ignore_environments = %w(test)
end
# If Airbrake doesn't send any expected exceptions, we suggest to uncomment the