Commit 39614072 authored by Jan Provaznik's avatar Jan Provaznik

fixed condition check

parent cdd7dfc4
...@@ -66,7 +66,7 @@ module ObjectStorage ...@@ -66,7 +66,7 @@ module ObjectStorage
# For FileUploaders, model may have many uploaders. In that case # For FileUploaders, model may have many uploaders. In that case
# we want to use exclusive key per upload, not per model to allow # we want to use exclusive key per upload, not per model to allow
# parallel migration # parallel migration
key_object = upload ? upload : model key_object = upload || model
"object_storage_migrate:#{key_object.class}:#{key_object.id}" "object_storage_migrate:#{key_object.class}:#{key_object.id}"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment