Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2308c2fc8130
Commit
1186dcab
authored
May 06, 2017
by
Sean McGivern
Browse files
Merge branch 'fix-routable-find-by-full-path-on-mysql' into 'master'
Fix `Routable.find_by_full_path` on MySQL See merge request !11146
parents
cbd86ff91532
c47f1b6cf18d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/concerns/routable.rb
View file @
2308c2fc
...
...
@@ -49,7 +49,7 @@ def find_by_full_path(path, follow_redirects: false)
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment