discourse/lib/permalink_constraint.rb
Sam 3a54923116 FIX: permalink normalization not applied at constraint
implement permalink import for lithium
2015-07-22 13:40:45 +10:00

7 lines
138 B
Ruby

class PermalinkConstraint
def matches?(request)
Permalink.where(url: Permalink.normalize_url(request.fullpath)).exists?
end
end