2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-20 18:52:44 +08:00
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