mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
7 lines
167 B
Ruby
Vendored
7 lines
167 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class PermalinkConstraint
|
|
def matches?(request)
|
|
Permalink.where(url: Permalink.normalize_url(request.fullpath)).exists?
|
|
end
|
|
end
|