mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 05:42:36 +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
|