* Refactored PostSet, splitting it into PostSets::Post and PostSets::Favorite

* Additional functional tests
This commit is contained in:
albert
2010-12-01 17:21:05 -05:00
parent f8ab736677
commit 39dd2e277a
20 changed files with 342 additions and 198 deletions

View File

@@ -0,0 +1,18 @@
module PostSets
class FavoriteSet < Base
attr_accessor :user
def initialize(options = {})
super(options)
@user = user
end
def tags
"fav:#{user.name}"
end
def load_posts
user.favorite_posts(:before_id => before_id)
end
end
end