fix build

This commit is contained in:
Régis Hanol
2018-08-04 01:56:26 +02:00
parent bf4d98e89d
commit 0cd9e2acb9
2 changed files with 12 additions and 6 deletions

View File

@ -87,6 +87,8 @@ class Upload < ActiveRecord::Base
path = uri.path[/(\/original\/\dX\/[\/\.\w]+)/, 1]
return if path.blank?
Upload.find_by("url LIKE ?", "%#{path}")
end