Sha256: 4b380a7d45d8d1eb1029d5e46cf4d207e308168783319fc09e4783dbee3f3380
Contents?: true
Size: 442 Bytes
Versions: 93
Compression:
Stored size: 442 Bytes
Contents
require 'honeybadger/plugin' require 'honeybadger/ruby' module Honeybadger Plugin.register do requirement { defined?(::Warden::Manager.after_set_user) } execution do ::Warden::Manager.after_set_user do |user, auth, opts| if user.respond_to?(:id) ::Honeybadger.context({ :user_scope => opts[:scope].to_s, :user_id => user.id.to_s }) end end end end end
Version data entries
93 entries across 93 versions & 1 rubygems