mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-10 14:47:02 +08:00
7 lines
138 B
Ruby
Vendored
7 lines
138 B
Ruby
Vendored
class PermalinkConstraint
|
|
|
|
def matches?(request)
|
|
Permalink.where(url: Permalink.normalize_url(request.fullpath)).exists?
|
|
end
|
|
|
|
end
|