Sha256: 1de32d314145fb01713e805a21626861688ba160b8b31159cb0bcfbd13587ac7
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
<% id = "#{Time.now.to_i}#{(rand * 1000).ceil}" %> <div class="js-paloma-hook" data-id="<%= id %>"> <script type="text/javascript"> (function(){ // Do not continue if Paloma not found. if (window['Paloma'] === undefined) { return true; } Paloma.env = '<%= Rails.env %>'; // Remove any callback details if any $('.js-paloma-hook[data-id!=' + <%= id %> + ']').remove(); var request = <%= request.to_json.html_safe %>; Paloma.engine.setRequest({ id: "<%= id %>", resource: request['resource'], action: request['action'], params: request['params']}); })(); </script> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paloma-4.2.1 | app/views/paloma/_hook.html.erb |
paloma-4.2.0 | app/views/paloma/_hook.html.erb |
paloma-4.1.2 | app/views/paloma/_hook.html.erb |