Skip to content

Commit 681bf7e

Browse files
author
Cristian Molina
committed
Fix deprec. warning on ActiveRecord::Base.transaction
1 parent 9c2d3ca commit 681bf7e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/exception_hunter/error_creator.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ def create_error(tag, error_attrs)
3636
update_error_group(error_group, error, tag)
3737
error.error_group = error_group
3838
error.save!
39-
return if error_group.ignored?
4039

41-
notify(error)
42-
error
40+
unless error_group.ignored?
41+
notify(error)
42+
error
43+
end
4344
end
4445
end
4546

0 commit comments

Comments
 (0)