gitlab-org--gitlab-foss/app/services/search/group_service.rb
2017-04-18 15:41:17 +01:00

18 lines
355 B
Ruby

module Search
class GroupService < Search::GlobalService
attr_accessor :group
def initialize(user, group, params)
super(user, params)
@group = group
end
def projects
return Project.none unless group
return @projects if defined? @projects
@projects = super.inside_path(group.full_path)
end
end
end