add humanized tag string for posts

This commit is contained in:
albert
2012-11-02 18:22:08 -04:00
parent ca280ce218
commit 8da4eabb96
6 changed files with 15 additions and 3 deletions

View File

@@ -15,6 +15,10 @@ module PostSets
tag_array.uniq.join(" ")
end
def humanized_tag_string
"fav:#{user.pretty_name}"
end
def posts
favorites.order("favorites.id desc").includes(:post).map(&:post)
end