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
b9bf23e0
Commit
b9bf23e0
authored
Sep 19, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extraneous code that was previously added for performance.
parent
edb38d69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/models/concerns/issuable.rb
app/models/concerns/issuable.rb
+0
-2
app/models/issue.rb
app/models/issue.rb
+2
-2
No files found.
app/models/concerns/issuable.rb
View file @
b9bf23e0
...
...
@@ -29,8 +29,6 @@ module Issuable
end
end
has_many
:system_notes
,
->
{
merge
(
Note
.
system
)
},
class_name:
Note
,
as: :noteable
,
inverse_of: :noteable
has_many
:label_links
,
as: :target
,
dependent: :destroy
has_many
:labels
,
through: :label_links
has_many
:todos
,
as: :target
,
dependent: :destroy
...
...
app/models/issue.rb
View file @
b9bf23e0
...
...
@@ -201,8 +201,8 @@ class Issue < ActiveRecord::Base
# From all notes on this issue, we'll select the system notes about linked
# merge requests. Of those, the MRs closing `self` are returned.
def
closed_by_merge_requests
(
current_user
=
nil
,
check_if_open:
true
)
return
[]
if
!
open
?
&&
check_if_open
def
closed_by_merge_requests
(
current_user
=
nil
)
return
[]
if
!
open
?
ext
=
all_references
(
current_user
)
...
...
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