Les hashtags twitter sont en camel case
This commit is contained in:
parent
fbf20b5be9
commit
d60eb49995
|
@ -92,7 +92,7 @@ class Event < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def hashtags
|
||||
tags.split.map { |tag| "##{tag}" }
|
||||
tags.split.map { |tag| "##{tag.gsub(/-/, '_').camelize :lower}" }
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Reference in New Issue