Merge branch 'fix-routable-find-by-full-path-on-mysql' into 'master'
Fix `Routable.find_by_full_path` on MySQL See merge request !11146
This commit is contained in:
commit
1186dcabbf
|
@ -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 New Issue