Sha256: 16acda63bf4f24c1ba4ef9402c354c13bc90a933e13eda1c821c769a3e21645e

Contents?: true

Size: 750 Bytes

Versions: 24

Compression:

Stored size: 750 Bytes

Contents

module WatCatcher
  module Helper
    def javascript_wat_catcher
      javascript_include_tag "wat_catcher",
                             data: {
                              route: wat_catcher.wats_path,
                              app_name: ::Rails.application.class.parent_name,
                              app_user: wat_user.as_json
                             }
    end

    def javascript_bugsnag_catcher
      javascript_include_tag "bugsnag",
                             data: {
                               endpoint: wat_catcher.bugsnag_path(::Rails.application.class.parent_name),
                               apiKey: "a"*32,
                               user: wat_user.as_json
                             }
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
wat_catcher-0.8.0 lib/wat_catcher/wattle_helper.rb
wat_catcher-0.7.2 lib/wat_catcher/wattle_helper.rb
wat_catcher-0.7.1 lib/wat_catcher/wattle_helper.rb
wat_catcher-0.7.0 lib/wat_catcher/wattle_helper.rb