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