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

user_url_constrainer.rb « constraints « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef38d47d5c69494f1c7539316d99da68b7e85c7a (plain)
1
2
3
4
5
6
7
require 'constraints/namespace_url_constrainer'

class UserUrlConstrainer < NamespaceUrlConstrainer
  def find_resource(id)
    User.find_by_username(id)
  end
end