summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-05-06 09:45:25 +0100
committerSean McGivern <sean@gitlab.com>2017-05-06 09:45:25 +0100
commitda0d8e0491d993e0b5c7905c360b71fa930612d5 (patch)
tree5d48ba400f06f7fc35eb0bad6cf60691f65ca26e /app
parent56fb7823f9740d4595d90dcb224180c950a27048 (diff)
downloadgitlab-ce-da0d8e0491d993e0b5c7905c360b71fa930612d5.tar.gz
Fix `Routable.find_by_full_path` on MySQLfix-routable-find-by-full-path-on-mysql
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/routable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/routable.rb b/app/models/concerns/routable.rb
index e351dbb45dd..c4463abdfe6 100644
--- a/app/models/concerns/routable.rb
+++ b/app/models/concerns/routable.rb
@@ -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