discourse/lib/slug.rb

13 lines
267 B
Ruby
Raw Normal View History

2013-02-06 03:16:51 +08:00
# encoding: utf-8
# Generates a slug. This is annoying beacuse it's duplicating what the javascript
# does, but on the other hand slugs are never matched so it's okay if they differ
# a little.
module Slug
def self.for(string)
2013-02-13 07:53:06 +08:00
string.parameterize
2013-02-06 03:16:51 +08:00
end
end