Sha256: f20222c3aa126761362cb2c4f3992e09f1382265ebfac3ad9f4fb398937710bf

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

<%= javascript_tag %Q{
  (function(){
    var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://");
    document.write(unescape("%3Cscript src='" + notifierJsScheme + "#{host}/javascripts/notifier.js' type='text/javascript'%3E%3C/script%3E"));
  })();
}%>

<%= javascript_tag %Q{
    window.Airbrake = Airbrake || Hoptoad;
    Airbrake.setKey('#{api_key}');
    Airbrake.setHost('#{host}');
    Airbrake.setEnvironment('#{environment}');
    Airbrake.setErrorDefaults({ url: "#{escape_javascript url}", component: "#{controller_name}", action: "#{action_name}" });
  }
%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
airbrake-3.0.1 lib/templates/javascript_notifier.erb