diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-18 23:49:56 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-18 23:49:56 +0300 |
commit | 733ae58798f6736af156e94b6906ac9c0b76fa3d (patch) | |
tree | c316a0a7b67a1f46d9e3c59cf8b699989dfebba7 /app/helpers/milestones_helper.rb | |
parent | c790107854658a37d97b9a1c9066338eb12b06bf (diff) |
Dedupe labels in labels selector in Dashboard pages
Also moved useless helper methods and directly to the
DashboardController.
Diffstat (limited to 'app/helpers/milestones_helper.rb')
-rw-r--r-- | app/helpers/milestones_helper.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb index de60be4eb25..c9d8787bd19 100644 --- a/app/helpers/milestones_helper.rb +++ b/app/helpers/milestones_helper.rb @@ -46,19 +46,6 @@ module MilestonesHelper end end - def projects_milestones_options - milestones = - if @project - @project.milestones - else - Milestone.where(project_id: @projects) - end.active - - epoch = DateTime.parse('1970-01-01') - grouped_milestones = GlobalMilestone.build_collection(milestones) - grouped_milestones.sort_by { |x| x.due_date.nil? ? epoch : x.due_date } - end - def milestones_filter_dropdown_path if @project namespace_project_milestones_path(@project.namespace, @project, :json) |