debian-mirror-gitlab/app/services/files/base_service.rb

18 lines
324 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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