Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
bf193eb7
Commit
bf193eb7
authored
Jun 06, 2016
by
Sean McGivern
Committed by
Alfredo Sumaran
Jun 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary null-specific order
parent
77f30af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/label.rb
app/models/label.rb
+2
-2
No files found.
app/models/label.rb
View file @
bf193eb7
...
@@ -33,11 +33,11 @@ class Label < ActiveRecord::Base
...
@@ -33,11 +33,11 @@ class Label < ActiveRecord::Base
scope
:templates
,
->
{
where
(
template:
true
)
}
scope
:templates
,
->
{
where
(
template:
true
)
}
def
self
.
prioritized
def
self
.
prioritized
where
.
not
(
priority:
nil
).
reorder
(
Gitlab
::
Database
.
nulls_last_order
(
:priority
),
:title
)
where
.
not
(
priority:
nil
).
reorder
(
:title
)
end
end
def
self
.
unprioritized
def
self
.
unprioritized
where
(
priority:
nil
).
reorder
(
Gitlab
::
Database
.
nulls_last_order
(
:priority
),
:title
)
where
(
priority:
nil
).
reorder
(
:title
)
end
end
alias_attribute
:name
,
:title
alias_attribute
:name
,
:title
...
...
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