<% if Rails.env == "staging" || Rails.env == "production" %>
!function(a,b,c,d,e,f,g,h){a.RaygunObject=e,a[e]=a[e]||function(){
(a[e].o=a[e].o||[]).push(arguments)},f=b.createElement(c),g=b.getElementsByTagName(c)[0],
f.async=1,f.src=d,g.parentNode.insertBefore(f,g),h=a.onerror,a.onerror=function(b,c,d,f,g){
h&&h(b,c,d,f,g),g||(g=new Error(b)),a[e].q=a[e].q||[],a[e].q.push({
e:g})}}(window,document,"script","//cdn.raygun.io/raygun4js/raygun.min.js","rg4js");

rg4js('apiKey', 'jXyEmb3vjngvdkib6L4O6w==');
rg4js('enableCrashReporting', true);
rg4js('options', {
  ignore3rdPartyErrors: true
});
<% end %>

<% if Rails.env == "staging" || Rails.env == "production" %>
!function(a,b,c,d,e,f,g,h){a.RaygunObject=e,a[e]=a[e]||function(){
(a[e].o=a[e].o||[]).push(arguments)},f=b.createElement(c),g=b.getElementsByTagName(c)[0],
f.async=1,f.src=d,g.parentNode.insertBefore(f,g),h=a.onerror,a.onerror=function(b,c,d,f,g){
h&&h(b,c,d,f,g),g||(g=new Error(b)),a[e].q=a[e].q||[],a[e].q.push({
e:g})}}(window,document,"script","//cdn.raygun.io/raygun4js/raygun.min.js","rg4js");

rg4js('apiKey', 'jXyEmb3vjngvdkib6L4O6w==');
rg4js('enableCrashReporting', false);
rg4js('options', {
  ignore3rdPartyErrors: true
});
<% end %>

Disable catch-all JS exception reporting
Disable catch-all JS exception reporting
