debian-mirror-gitlab/app/services/milestones/base_service.rb

14 lines
322 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
module Milestones
class BaseService < ::BaseService
2017-09-10 17:25:29 +05:30
# 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-11-08 19:23:39 +05:30
super
2017-09-10 17:25:29 +05:30
end
2014-09-02 18:07:02 +05:30
end
end