diff options
author | George Claghorn <george@basecamp.com> | 2018-07-08 11:35:27 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-07-08 11:35:27 -0400 |
commit | 0b85123cd82a99431c12cd260a1c537a9e604a23 (patch) | |
tree | b73eff696226b4c7c6b06dbdb0dd58e05be5957a /activestorage/lib | |
parent | 79edcaeb6ccd7f95029e36dd1a13369b119edfdf (diff) | |
download | rails-0b85123cd82a99431c12cd260a1c537a9e604a23.tar.gz rails-0b85123cd82a99431c12cd260a1c537a9e604a23.tar.bz2 rails-0b85123cd82a99431c12cd260a1c537a9e604a23.zip |
Raise an ArgumentError instead of a RuntimeError
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/attached/changes/create_one.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/attached/changes/create_one.rb b/activestorage/lib/active_storage/attached/changes/create_one.rb index bb59a651ba..98aea36861 100644 --- a/activestorage/lib/active_storage/attached/changes/create_one.rb +++ b/activestorage/lib/active_storage/attached/changes/create_one.rb @@ -58,7 +58,7 @@ module ActiveStorage when String ActiveStorage::Blob.find_signed(attachable) else - raise "Could not find or build blob: expected attachable, got #{attachable.inspect}" + raise ArgumentError, "Could not find or build blob: expected attachable, got #{attachable.inspect}" end end end |