Sha256: 7479e59f46bebe80d8139cba1d766f2ad0a502b2841da6acfd60b06ac00ad761

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 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.Pulse = Pulse
    Pulse.setKey('#{api_key}');
    Pulse.setHost('#{host}');
    Pulse.setEnvironment('#{environment}');
    Pulse.setErrorDefaults({ url: "#{escape_javascript url}", component: "#{controller_name}", action: "#{action_name}" });
  }
%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
projectlocker_pulse-1.0.0 lib/templates/javascript_notifier.erb
projectlocker_pulse-0.2.1 lib/templates/javascript_notifier.erb