2018-07-17 12:50:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-06-10 11:07:52 -04:00
|
|
|
module Milestones
|
|
|
|
class BaseService < ::BaseService
|
2017-07-07 11:08:49 -04:00
|
|
|
# Parent can either a group or a project
|
|
|
|
attr_accessor :parent, :current_user, :params
|
|
|
|
|
|
|
|
def initialize(parent, user, params = {})
|
|
|
|
@parent, @current_user, @params = parent, user, params.dup
|
2018-05-17 12:51:55 -04:00
|
|
|
super
|
2017-07-07 11:08:49 -04:00
|
|
|
end
|
2014-06-10 11:07:52 -04:00
|
|
|
end
|
|
|
|
end
|