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: 504a0f5d93e0fe1aff6f53ea98c0a9f19ece987e (plain)
1
2
3
4
5
6
7
require 'constraints/namespace_url_constrainer'

class UserUrlConstrainer < NamespaceUrlConstrainer
  def find_resource(id)
    User.find_by('lower(username) = ?', id.downcase)
  end
end