Les hashtags twitter sont en camel case

This commit is contained in:
echarp 2014-10-09 12:36:47 +02:00
parent fbf20b5be9
commit d60eb49995
1 changed files with 1 additions and 1 deletions

View File

@ -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