2018-07-16 16:31:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-28 21:56:49 +00: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 21:09:27 +00:00
|
|
|
@parent = parent
|
|
|
|
@current_user = user
|
|
|
|
@params = params.dup
|
2017-08-28 21:56:49 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 13:26:31 +00:00
|
|
|
|
2021-05-11 21:10:21 +00:00
|
|
|
Boards::BaseService.prepend_mod_with('Boards::BaseService')
|