5 lines
154 B
Ruby
5 lines
154 B
Ruby
class UserUrlConstrainer
|
|
def matches?(request)
|
|
User.find_by_full_path(request.params[:username], follow_redirects: request.get?).present?
|
|
end
|
|
end
|