Sha256: bf83dae1b98bbf872dca340367caf277a58c9b7df04ba6542bfa1a79b2ea3906
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module BugHerdHelper def bugherd_tag(options = {}) key = ENV['BUGHERD_PROJECT_KEY'] || BugHerd.configuration.project_key javascript_tag " var BugHerdConfig = #{options.to_json}; (function (d, t) { var bh = d.createElement(t), s = d.getElementsByTagName(t)[0]; bh.type = 'text/javascript'; bh.src = '//www.bugherd.com/sidebarv2.js?apikey=#{key}'; s.parentNode.insertBefore(bh, s); })(document, 'script'); " end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bugherd-0.0.3 | lib/bugherd/helpers/bugherd_helper.rb |