From f0b219f4743a2e624ddf16776e8ae0dfc5a6ba58 Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Wed, 12 Oct 2011 03:39:27 -0200 Subject: [PATCH] More simple tags_stream title. Was insane when following a lot of tags :D --- lib/stream/tag_stream.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/stream/tag_stream.rb b/lib/stream/tag_stream.rb index 47ccc5ec4..c84ea9a83 100644 --- a/lib/stream/tag_stream.rb +++ b/lib/stream/tag_stream.rb @@ -9,7 +9,7 @@ class TagStream < BaseStream end def title - tags_titleized + I18n.t('aspects.index.tags_following') end # @return [ActiveRecord::Association] 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