Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix uninitialized constant when used with Rails 3

  • Loading branch information...
commit 6dfb48ab8b92eafc61033977fd30a250c2a453e4 1 parent 192a49a
@smartinez87 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/exception_notifier.rb
View
6 lib/exception_notifier.rb
@@ -4,9 +4,9 @@
class ExceptionNotifier
def self.default_ignore_exceptions
[].tap do |exceptions|
- exceptions << ActiveRecord::RecordNotFound if defined? ActiveRecord
- exceptions << AbstractController::ActionNotFound if defined? AbstractController
- exceptions << ActionController::RoutingError if defined? ActionController
+ exceptions << ::ActiveRecord::RecordNotFound if defined? ::ActiveRecord::RecordNotFound
+ exceptions << ::AbstractController::ActionNotFound if defined? ::AbstractController::ActionNotFound
+ exceptions << ::ActionController::RoutingError if defined? ::ActionController::RoutingError
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.