Skip to content
Snippets Groups Projects
Commit ce09c70d authored by Sean McGivern's avatar Sean McGivern
Browse files

Fix `Routable.find_by_full_path` on MySQL

Former-commit-id: da0d8e04
parent 48d3ee90
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment