fix rubocop offenses
This commit is contained in:
parent
5d528f0d15
commit
83011045c8
|
@ -95,7 +95,7 @@ module FileStore
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_path_for_upload(upload)
|
def get_path_for_upload(upload)
|
||||||
get_path_for("original".freeze, upload.id, upload.sha1, "."+upload.extension)
|
get_path_for("original".freeze, upload.id, upload.sha1, "." + upload.extension)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_path_for_optimized_image(optimized_image)
|
def get_path_for_optimized_image(optimized_image)
|
||||||
|
|
|
@ -501,7 +501,7 @@ class Search
|
||||||
SELECT post_uploads.post_id FROM uploads
|
SELECT post_uploads.post_id FROM uploads
|
||||||
JOIN post_uploads ON post_uploads.upload_id = uploads.id
|
JOIN post_uploads ON post_uploads.upload_id = uploads.id
|
||||||
WHERE lower(uploads.extension) IN (:file_extensions)
|
WHERE lower(uploads.extension) IN (:file_extensions)
|
||||||
)", {file_extensions: file_extensions})
|
)", file_extensions: file_extensions)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue