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