2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-28 17:56:49 -04:00
|
|
|
module Boards
|
|
|
|
class BaseService < ::BaseService
|
|
|
|
# Parent can either a group or a project
|
|
|
|
attr_accessor :parent, :current_user, :params
|
|
|
|
|
|
|
|
def initialize(parent, user, params = {})
|
2021-04-19 17:09:27 -04:00
|
|
|
@parent = parent
|
|
|
|
@current_user = user
|
|
|
|
@params = params.dup
|
2017-08-28 17:56:49 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
Boards::BaseService.prepend_mod_with('Boards::BaseService')
|