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
|
end
|
||||||
|
|
||||||
def hashtags
|
def hashtags
|
||||||
tags.split.map { |tag| "##{tag}" }
|
tags.split.map { |tag| "##{tag.gsub(/-/, '_').camelize :lower}" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user