Fix `Routable.find_by_full_path` on MySQL

This commit is contained in:
Sean McGivern 2017-05-06 09:45:25 +01:00
parent 56fb7823f9
commit da0d8e0491
1 changed files with 1 additions and 1 deletions

View File

@ -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