Sha256: ab837a905997de211242cec0f77421ce85352a16e7e930f1408eb9e9332e3861

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

<%= javascript_tag %Q{
    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{
    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

3 entries across 3 versions & 1 rubygems

Version Path
airbrake-3.0 lib/templates/javascript_notifier.erb
airbrake-3.0.rc2 lib/templates/javascript_notifier.erb
airbrake-3.0.rc1 lib/templates/javascript_notifier.erb