fixed edge case for pool creation
This commit is contained in:
@@ -440,7 +440,7 @@ class Post < ActiveRecord::Base
|
||||
if pool.nil?
|
||||
pool = Pool.create(:name => $1, :description => "This pool was automatically generated")
|
||||
end
|
||||
add_pool!(pool)
|
||||
add_pool!(pool) if pool
|
||||
|
||||
when /^rating:([qse])/i
|
||||
self.rating = $1.downcase
|
||||
|
||||
@@ -28,7 +28,7 @@ class TagImplication < ActiveRecord::Base
|
||||
all.concat(children)
|
||||
children = self.class.where(["antecedent_name IN (?)", children]).all.map(&:consequent_name)
|
||||
end
|
||||
end.sort
|
||||
end.sort.uniq
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user