This commit is contained in:
albert
2011-06-21 12:20:22 -04:00
parent 8a7597bc98
commit 07f8dba7f2
22 changed files with 262 additions and 468 deletions

View File

@@ -1,30 +0,0 @@
# This only works with the numbered paginator because of the way
# the association is stored.
module PostSets
module Pool
def pool
@pool ||= ::Pool.find(params[:id])
end
def tags
["pool:#{pool.name}"]
end
def has_wiki?
true
end
def count
pool.post_count
end
def posts
@posts ||= pool.posts(pagination_options.merge(:limit => limit)).all
end
def reload
super
@pool = nil
end
end
end