15 lines
334 B
Ruby
15 lines
334 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Milestones
|
|
class BaseService < ::BaseService
|
|
# Parent can either a group or a project
|
|
attr_accessor :parent, :current_user, :params
|
|
|
|
def initialize(parent, user, params = {})
|
|
@parent = parent
|
|
@current_user = user
|
|
@params = params.dup
|
|
super
|
|
end
|
|
end
|
|
end
|