# File lib/exception_notifiable.rb, line 50 def exceptions_to_treat_as_404 exceptions = [ActionController::UnknownController, ActionController::UnknownAction] exceptions << ActionController::RoutingError if ActionController.const_defined?(:RoutingError) exceptions << ActiveRecord::RecordNotFound if Object.const_defined?(:ActiveRecord) exceptions end