More simple tags_stream title. Was insane when following a lot of tags :D

This commit is contained in:
Gonzalo Rodriguez 2011-10-12 03:39:27 -02:00
parent 27d9e7a8c6
commit f0b219f474

View file

@ -9,7 +9,7 @@ class TagStream < BaseStream
end
def title
tags_titleized
I18n.t('aspects.index.tags_following')
end
# @return [ActiveRecord::Association<Post>] AR association of posts
@ -48,8 +48,4 @@ class TagStream < BaseStream
def tags
@tags = user.followed_tags
end
def tags_titleized
tag_string.split(',').map{|x| "##{x.strip}"}.to_sentence
end
end