Permalink
Browse files

Fix uninitialized constant when used with Rails 3

  • Loading branch information...
1 parent 192a49a commit 6dfb48ab8b92eafc61033977fd30a250c2a453e4 @smartinez87 committed Mar 6, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 6dfb48a

Please sign in to comment.