Sha256: 2663676f3a561134c657a35d0c223f5abecaa714a63eb8dcdcb3bbf9f6ee1a28
Contents?: true
Size: 410 Bytes
Versions: 21
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module NeetoCommonsBackend module HoneybadgerContext extend ActiveSupport::Concern included do before_action :set_honeybadger_context def set_honeybadger_context hash = { uuid: request.uuid } hash.merge!(user_id: current_user.id, user_email: current_user.email) if current_user Honeybadger.context hash end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
neeto-commons-backend-1.0.89 | lib/neeto_commons_backend/controllers/concerns/honeybadger_context.rb |