{"issue":{"pull_request":{"diff_url":"https://github.com/protonet/simple-javascript-airbrake-notifier/pull/2.diff","html_url":"https://github.com/protonet/simple-javascript-airbrake-notifier/pull/2","patch_url":"https://github.com/protonet/simple-javascript-airbrake-notifier/pull/2.patch"},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/6df55663820ca7e80bc3297c5de96650?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6df55663820ca7e80bc3297c5de96650","url":"https://api.github.com/users/tmschndr","login":"tmschndr","id":19489},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-10T21:55:41Z","closed_at":null,"comments":1,"url":"https://api.github.com/repos/protonet/simple-javascript-airbrake-notifier/issues/2","body":"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:\r\n\r\n      var AIRBRAKE_ENVIRONMENT = '#{Rails.env}';\r\n\r\nIf you don't make use of it, the environment being sent to Airbrake defaults to 'production'.","html_url":"https://github.com/protonet/simple-javascript-airbrake-notifier/issues/2","title":"passing the current Rails.env as global variable","number":2,"id":2175569,"created_at":"2011-11-08T15:44:57Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f4d2e3ebf33bc765070f9a4e3b345e91?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f4d2e3ebf33bc765070f9a4e3b345e91","url":"https://api.github.com/users/tiff","login":"tiff","id":37363},"updated_at":"2011-11-10T21:55:41Z","url":"https://api.github.com/repos/protonet/simple-javascript-airbrake-notifier/issues/comments/2701761","body":"Great work! Will merge it in the upcoming days. Thanks.","id":2701761,"created_at":"2011-11-10T21:55:41Z"}}