diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 14:38:34 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 14:38:34 +0100 |
commit | 98d6d491b5187945b2d86db20af411240716980a (patch) | |
tree | 8732025f0a6763c0a1ab90b12d5b75c097692c09 /app/services/milestones | |
parent | c79d801bf58c58ec21e64cb782176d6dc879a60f (diff) | |
download | gitlab-ce-98d6d491b5187945b2d86db20af411240716980a.tar.gz |
Move global milestone specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/milestones')
-rw-r--r-- | app/services/milestones/collection_service.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/services/milestones/collection_service.rb b/app/services/milestones/collection_service.rb deleted file mode 100644 index 2eefec99e7b..00000000000 --- a/app/services/milestones/collection_service.rb +++ /dev/null @@ -1,26 +0,0 @@ -module Milestones - class CollectionService < Milestones::BaseService - def initialize(project_milestones) - @project_milestones = project_milestones.group_by(&:title) - end - - def execute - build(@project_milestones) - end - - def milestone(title) - if title - group_milestone = @project_milestones[title].group_by(&:title) - build(group_milestone).first - else - nil - end - end - - private - - def build(milestone) - milestone.map{ |title, milestones| GroupMilestone.new(title, milestones) } - end - end -end |