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
5e1cced6435e
Commit
666c20cb
authored
Mar 17, 2017
by
mhasbini
Browse files
Remove repeated routes.path check for postgresql database
parent
736803feb02b
Changes
2
Show whitespace changes
Inline
Side-by-side
app/models/concerns/routable.rb
View file @
5e1cced6
...
@@ -51,10 +51,12 @@ def where_full_path_in(paths)
...
@@ -51,10 +51,12 @@ def where_full_path_in(paths)
paths
.
each
do
|
path
|
paths
.
each
do
|
path
|
path
=
connection
.
quote
(
path
)
path
=
connection
.
quote
(
path
)
where
=
"(routes.path =
#{
path
}
)"
where
=
if
cast_lower
if
cast_lower
where
=
"(
#{
where
}
OR (LOWER(routes.path) = LOWER(
#{
path
}
)))"
"(LOWER(routes.path) = LOWER(
#{
path
}
))"
else
"(routes.path =
#{
path
}
)"
end
end
wheres
<<
where
wheres
<<
where
...
...
changelogs/unreleased/routes-lower-case.yml
0 → 100644
View file @
5e1cced6
---
title
:
Remove repeated routes.path check for postgresql database
merge_request
:
author
:
mhasbini
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