mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-16 03:30:05 -05:00
7 lines
138 B
Ruby
7 lines
138 B
Ruby
class PermalinkConstraint
|
|
|
|
def matches?(request)
|
|
Permalink.where(url: Permalink.normalize_url(request.fullpath)).exists?
|
|
end
|
|
|
|
end
|