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:
parent
b6f5b48b40
commit
3c8c9c181a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue