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