protonet/simple-javascript-airbrake-notifier — pull request #2 by tmschndr (2011-11-08 15:44:57+00:00)
Title: passing the current Rails.env as global variable

This one is pretty straight forward: If you like to track JS errors in other environments than production (also helpful in staging from time to time), you can now pass the current environment as a global variable like:

var AIRBRAKE_ENVIRONMENT = '#{Rails.env}';

If you don't make use of it, the environment being sent to Airbrake defaults to 'production'.