summaryrefslogtreecommitdiff
path: root/app/services/base_container_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/base_container_service.rb')
-rw-r--r--app/services/base_container_service.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/services/base_container_service.rb b/app/services/base_container_service.rb
new file mode 100644
index 00000000000..56e4b8c908c
--- /dev/null
+++ b/app/services/base_container_service.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+# Base class, scoped by container (project or group)
+class BaseContainerService
+ include BaseServiceUtility
+
+ attr_reader :container, :current_user, :params
+
+ def initialize(container:, current_user: nil, params: {})
+ @container, @current_user, @params = container, current_user, params.dup
+ end
+end