diff options
author | Brock Trappitt <brock.trappitt@gmail.com> | 2014-08-23 13:40:49 +0800 |
---|---|---|
committer | Brock Trappitt <brock.trappitt@gmail.com> | 2014-08-23 13:40:49 +0800 |
commit | 3c8c9c181a6bc49d76df869ba9467958be83698d (patch) | |
tree | 2ac24f50b82635cecaa3a1e0ccbe4f97c961f32c /guides/source | |
parent | b6f5b48b4063eaaea0a823ca08c8fd270128ab42 (diff) | |
download | rails-3c8c9c181a6bc49d76df869ba9467958be83698d.tar.gz rails-3c8c9c181a6bc49d76df869ba9467958be83698d.tar.bz2 rails-3c8c9c181a6bc49d76df869ba9467958be83698d.zip |
Properly referencing AR::RecordNotFound in AJ guide rescuing example
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_job_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index ae5d21d546..3f58dbcd36 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -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 |