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: 9ab5bcb12ffc30ae58089573da844d6fe8118459 (plain)
1
2
3
4
5
class UserUrlConstrainer
  def matches?(request)
    User.find_by_username(request.params[:username]).present?
  end
end