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
cf4d13de8cd9
Commit
cf4d13de
authored
Oct 09, 2012
by
randx
Browse files
project.issues_labels method
parent
92ffa759d6e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/controllers/labels_controller.rb
View file @
cf4d13de
...
...
@@ -7,7 +7,7 @@
respond_to
:js
,
:html
def
index
@labels
=
@project
.
issues
.
tag_counts_on
(
:
labels
)
.
order
(
'count DESC'
)
@labels
=
@project
.
issues
_
labels
.
order
(
'count DESC'
)
end
protected
...
...
app/models/project.rb
View file @
cf4d13de
...
...
@@ -159,6 +159,10 @@
def
project_id
self
.
id
end
def
issues_labels
issues
.
tag_counts_on
(
:labels
)
end
end
# == Schema Information
...
...
app/roles/issue_commonality.rb
View file @
cf4d13de
# Contains common functionality shared between Issues and MergeRequests
# Contains common functionality
# shared between Issues and MergeRequests
module
IssueCommonality
extend
ActiveSupport
::
Concern
...
...
Write
Preview
Supports
Markdown
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