diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-23 11:05:20 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-23 11:05:20 -0500 |
commit | 46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea (patch) | |
tree | bc19d2f900055e39de21f62ec27e9079723cfa5f /lib/active_storage | |
parent | 8f20624820ed0922b33fceb4013d3ff11015b366 (diff) | |
download | rails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.tar.gz rails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.tar.bz2 rails-46da4ee7daf1ecaa2fc47a260ccb58e119a1b5ea.zip |
Switch to simpler signed_id for blob rather than full GlobalID
We don't need to lookup multiple different classes, so no need to use a globalid.
Diffstat (limited to 'lib/active_storage')
-rw-r--r-- | lib/active_storage/attached.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_storage/attached.rb b/lib/active_storage/attached.rb index d5ded51e2b..9fa7b8e021 100644 --- a/lib/active_storage/attached.rb +++ b/lib/active_storage/attached.rb @@ -26,7 +26,7 @@ class ActiveStorage::Attached when Hash ActiveStorage::Blob.create_after_upload!(attachable) when String - GlobalID::Locator.locate_signed(attachable) + ActiveStorage::Blob.find_signed(attachable) else nil end |