Module: WatCatcher::Helper
- Defined in:
- lib/wat_catcher/wattle_helper.rb
Instance Method Summary collapse
Instance Method Details
#javascript_bugsnag_catcher ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/wat_catcher/wattle_helper.rb', line 12 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 |
#javascript_wat_catcher ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/wat_catcher/wattle_helper.rb', line 3 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 |