debian-mirror-gitlab/app/services/files/base_service.rb
2015-04-26 09:18:37 +02:00

17 lines
324 B
Ruby

module Files
class BaseService < ::BaseService
attr_reader :ref, :path
def initialize(project, user, params, ref, path = nil)
@project, @current_user, @params = project, user, params.dup
@ref = ref
@path = path
end
private
def repository
project.repository
end
end
end