Sha256: 2ebd5861865433fc92395bc0b7188e5d0d2d02d977da8a80a97c239c3160c556

Contents?: true

Size: 872 Bytes

Versions: 2

Compression:

Stored size: 872 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,
                               notifyUnhandledRejections: !!WatCatcher.configuration.notify_unhandled_promise_rejections
                             }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wat_catcher-0.10.11 lib/wat_catcher/wattle_helper.rb
wat_catcher-0.10.10 lib/wat_catcher/wattle_helper.rb