blob: cfb4dd2875381ed5b289d05ffa50304e99718474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module ErrorHandleable
extend ActiveSupport::Concern
included do
before_action do |controller|
if controller.send(:current_user)
append_exception_data({
current_user: current_user
})
end
end
end
private
def append_exception_data(data = {})
request.env["exception_notifier.exception_data"] = data
end
end
|