summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-03-06 16:07:09 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-03-06 16:07:09 +0000
commiteb7b03af2c8fe759c6e1e94222a19413ff5f21bf (patch)
tree3bc9462b9e5dd7521d8515f7bcef7dd78d851657 /app/models
parent5fce538b076f0fb48aa3b3c77ea0914a00c964fb (diff)
parent5ce3845f17c2c6e168cf2bd1b3c5093f10db1953 (diff)
downloadgitlab-ce-eb7b03af2c8fe759c6e1e94222a19413ff5f21bf.tar.gz
Merge branch 'fix-mentioned-issues-for-external-trackers' into 'master'
Fix issues mentioned but not closed for JIRA Closes #26028 See merge request !9687
Diffstat (limited to 'app/models')
-rw-r--r--app/models/external_issue.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/external_issue.rb b/app/models/external_issue.rb
index b973bbcd8da..e63f89a9f85 100644
--- a/app/models/external_issue.rb
+++ b/app/models/external_issue.rb
@@ -24,6 +24,11 @@ class ExternalIssue
def ==(other)
other.is_a?(self.class) && (to_s == other.to_s)
end
+ alias_method :eql?, :==
+
+ def hash
+ [self.class, to_s].hash
+ end
def project
@project