Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-08 11:29:19 +0300
committerPhil Hughes <me@iamphill.com>2016-06-14 10:36:07 +0300
commit20d382a891d92197620eb4e72526577a916292d7 (patch)
treebf9dcaddb8c33e9d7c6e15f07a3ecef1d010933f /app/helpers/issuables_helper.rb
parentf8a8999a2069dedd9ca21bde2b726a077c057576 (diff)
Moved todo creation over to project todos controller
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 2ae7f5c5f32..8dbc51a689f 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -67,16 +67,6 @@ module IssuablesHelper
end
end
- def issuable_todo_path(issuable)
- project = issuable.project
-
- if issuable.kind_of?(MergeRequest)
- todo_namespace_project_merge_request_path(project.namespace, project, issuable.iid, :json)
- else
- todo_namespace_project_issue_path(project.namespace, project, issuable.iid, :json)
- end
- end
-
def has_todo(issuable)
unless current_user.nil?
current_user.todos.find_by(target_id: issuable.id, state: :pending)