More simple tags_stream title. Was insane when following a lot of tags :D
This commit is contained in:
parent
27d9e7a8c6
commit
f0b219f474
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue