debian-mirror-gitlab/lib/constraints/group_url_constrainer.rb

8 lines
162 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
require 'constraints/namespace_url_constrainer'
class GroupUrlConstrainer < NamespaceUrlConstrainer
def find_resource(id)
Group.find_by_path(id)
end
end