This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/lib/permalink_constraint.rb
T
Sam 3a54923116 FIX: permalink normalization not applied at constraint
implement permalink import for lithium
2015-07-22 13:40:45 +10:00

8 lines
138 B
Ruby

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