mirror of
https://github.com/discourse/discourse.git
synced 2025-02-12 03:21:01 +08:00
13 lines
267 B
Ruby
13 lines
267 B
Ruby
# 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)
|
|
string.parameterize
|
|
end
|
|
|
|
end
|