Fix Routable.find_by_full_path
on MySQL
This commit is contained in:
parent
56fb7823f9
commit
da0d8e0491
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Routable
|
|||
if Gitlab::Database.postgresql?
|
||||
joins(:redirect_routes).find_by("LOWER(redirect_routes.path) = LOWER(?)", path)
|
||||
else
|
||||
joins(:redirect_routes).find_by(path: path)
|
||||
joins(:redirect_routes).find_by(redirect_routes: { path: path })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue