MindscapeHQ/raygun4ruby — pull request #11 by scarpenter (2013-09-16 20:50:28+00:00)
Title: Moved silence_reporting setting to the generated initializer for Rails.

The problem was that the Railtie ran after the initializer so the value set in the initializer would be overwritten by the Railtie based only on environment. This made it impossible to base the silence_reporting setting on anything but the production environment.

This works fine for the logger since it's `nil` by default so the Railtie will only overwrite it if it hasn't been set. This doesn't work for `silence_reporting` since it's a boolean.

By adding `silence_reporting` to the generated initializer, the default is still preserved in a Rails app and it makes it obvious how to change it as well.