summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-12-03 09:23:38 -0600
committerBrett Walker <bwalker@gitlab.com>2018-12-04 08:44:21 -0600
commit2674830e4df3f6509bd63ebfd048bc6a4e7053ab (patch)
treeddf982d821a7ce32d275f841f6ce3fb14f5a78a9 /app/models/issue.rb
parentbba23151a1c0b4dff8f2c31301c5d0589876251d (diff)
downloadgitlab-ce-2674830e4df3f6509bd63ebfd048bc6a4e7053ab.tar.gz
Extract code into IssueBoardEntity
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 780035c77e2..b7e13bcbccf 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -235,20 +235,6 @@ class Issue < ActiveRecord::Base
def as_json(options = {})
super(options).tap do |json|
- if options.key?(:issue_endpoints) && project
- url_helper = Gitlab::Routing.url_helpers
-
- issue_reference = options[:include_full_project_path] ? to_reference(full: true) : to_reference
-
- json.merge!(
- reference_path: issue_reference,
- real_path: url_helper.project_issue_path(project, self),
- issue_sidebar_endpoint: url_helper.project_issue_path(project, self, format: :json, serializer: 'sidebar'),
- toggle_subscription_endpoint: url_helper.toggle_subscription_project_issue_path(project, self),
- assignable_labels_endpoint: url_helper.project_labels_path(project, format: :json, include_ancestor_groups: true)
- )
- end
-
if options.key?(:labels)
json[:labels] = labels.as_json(
project: project,