This commit is contained in:
albert
2012-01-14 16:57:14 -05:00
parent ec22f95136
commit 52c3241d3f

View File

@@ -39,7 +39,7 @@ class Pool < ActiveRecord::Base
end end
def self.normalize_post_ids(post_ids) def self.normalize_post_ids(post_ids)
post_ids.gsub(/\s{2,}/, " ").strip post_ids.scan(/\d+/).join(" ")
end end
def self.find_by_name(name) def self.find_by_name(name)