1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Properly referencing AR::RecordNotFound in AJ guide rescuing example

This commit is contained in:
Brock Trappitt 2014-08-23 13:40:49 +08:00
parent b6f5b48b40
commit 3c8c9c181a

View file

@ -242,7 +242,7 @@ job:
class GuestsCleanupJob < ActiveJob::Base
queue_as :default
rescue_from(ActiveRecord:NotFound) do |exception|
rescue_from(ActiveRecord::RecordNotFound) do |exception|
# do something with the exception
end