Sha256: 4f743b6f48951bd20c301c82457a695cc83b18d9cd1a4eaee15ac428c1575709

Contents?: true

Size: 540 Bytes

Versions: 10

Compression:

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
square-hoptoad_notifier-2.4.9 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.11 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.10 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.9 lib/templates/javascript_notifier.erb
square-hoptoad_notifier-2.4.8 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.8 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.7 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.6 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.5 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.4.4 lib/templates/javascript_notifier.erb