summaryrefslogtreecommitdiff
path: root/app/models/external_issue.rb
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2019-01-16 10:48:12 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2019-01-16 13:53:04 +0500
commitc379973bceccbcd7b554f4a9c7026aca7cba4618 (patch)
treec2f4fc001f45459139f1f41732595707bdd69801 /app/models/external_issue.rb
parenta2b26577220643a865212cb297a2bf12338176ea (diff)
downloadgitlab-ce-c379973bceccbcd7b554f4a9c7026aca7cba4618.tar.gz
chore(rubocop): fix Style/TrivialAccessors issues
Diffstat (limited to 'app/models/external_issue.rb')
-rw-r--r--app/models/external_issue.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/external_issue.rb b/app/models/external_issue.rb
index 4f73beaafc5..68b2353556e 100644
--- a/app/models/external_issue.rb
+++ b/app/models/external_issue.rb
@@ -3,6 +3,8 @@
class ExternalIssue
include Referable
+ attr_reader :project
+
def initialize(issue_identifier, project)
@issue_identifier, @project = issue_identifier, project
end
@@ -32,12 +34,8 @@ class ExternalIssue
[self.class, to_s].hash
end
- def project
- @project
- end
-
def project_id
- @project.id
+ project.id
end
def to_reference(_from = nil, full: nil)