Skip to content

Commit 6dfb48a

Browse files
committed
Fix uninitialized constant when used with Rails 3
1 parent 192a49a commit 6dfb48a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/exception_notifier.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
class ExceptionNotifier
55
def self.default_ignore_exceptions
66
[].tap do |exceptions|
7-
exceptions << ActiveRecord::RecordNotFound if defined? ActiveRecord
8-
exceptions << AbstractController::ActionNotFound if defined? AbstractController
9-
exceptions << ActionController::RoutingError if defined? ActionController
7+
exceptions << ::ActiveRecord::RecordNotFound if defined? ::ActiveRecord::RecordNotFound
8+
exceptions << ::AbstractController::ActionNotFound if defined? ::AbstractController::ActionNotFound
9+
exceptions << ::ActionController::RoutingError if defined? ::ActionController::RoutingError
1010
end
1111
end
1212

0 commit comments

Comments
 (0)