* Some major bug fixes related to post sets. Tests for pools and favorites were added.
* Refactored the favorites code a bit. Adding a favorite from either an user or a post now works and will update all necessary records.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
module PostSets
|
||||
module Pool
|
||||
def pool
|
||||
@pool ||= Pool.find(params[:id])
|
||||
@pool ||= ::Pool.find(params[:id])
|
||||
end
|
||||
|
||||
def tags
|
||||
@@ -19,7 +19,7 @@ module PostSets
|
||||
end
|
||||
|
||||
def posts
|
||||
@posts ||= pool.posts(pagination_options)
|
||||
@posts ||= pool.posts(pagination_options).limit(limit).all
|
||||
end
|
||||
|
||||
def reload
|
||||
|
||||
Reference in New Issue
Block a user