diff options
Diffstat (limited to 'app/models/upload.rb')
-rw-r--r-- | app/models/upload.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/upload.rb b/app/models/upload.rb index 28baee95091..2024228537a 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -30,8 +30,7 @@ class Upload < ActiveRecord::Base end def build_uploader - uploader_class.new(model, mount_point, **uploader_context) - .tap do |uploader| + uploader_class.new(model, mount_point, **uploader_context).tap do |uploader| uploader.upload = self uploader.retrieve_from_store!(identifier) end |