2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-08-29 23:28:16 +08:00
|
|
|
class PermalinkConstraint
|
|
|
|
|
|
|
|
def matches?(request)
|
2015-07-22 11:40:45 +08:00
|
|
|
Permalink.where(url: Permalink.normalize_url(request.fullpath)).exists?
|
2014-08-29 23:28:16 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|