Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_project_service.rb « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fb466e61673658eeb1957ad015275b74899b07a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

# Base class, scoped by project
class BaseProjectService < ::BaseContainerService
  attr_accessor :project

  def initialize(project:, current_user: nil, params: {})
    super(container: project, current_user: current_user, params: params)

    @project = project
  end

  delegate :repository, to: :project
end