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

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