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:
Sean McGivern 2017-05-06 11:12:04 +00:00
commit 1186dcabbf
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