Read about our upcoming Code of Conduct on this issue

Commit cd3e4101 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Merge branch 'routes-lower-case' into 'master'

Remove repeated routes.path check for postgresql database

See merge request !10063
......@@ -51,11 +51,13 @@ def where_full_path_in(paths)
paths.each do |path|
path = connection.quote(path)
where = "(routes.path = #{path})"
if cast_lower
where = "(#{where} OR (LOWER(routes.path) = LOWER(#{path})))"
end
where =
if cast_lower
"(LOWER(routes.path) = LOWER(#{path}))"
else
"(routes.path = #{path})"
end
wheres << where
end
......
---
title: Remove repeated routes.path check for postgresql database
merge_request:
author: mhasbini
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