updated tests, switched to rails 3.0.0rc2
This commit is contained in:
@@ -36,6 +36,8 @@ class Pool < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def add_post!(post)
|
||||
return if post_ids =~ /(?:\A| )#{post.id}(?:\Z| )/
|
||||
|
||||
self.post_ids += " #{post.id}"
|
||||
self.post_ids.strip!
|
||||
save
|
||||
|
||||
Reference in New Issue
Block a user