lib/purgatory/purgatory.rb in purgatory-2.12.0 vs lib/purgatory/purgatory.rb in purgatory-2.13.0
- old
+ new
@@ -53,10 +53,10 @@
end
false
end
def self.pending_with_matching_soul(soul)
- pending.where("soul_id IS NOT NULL AND soul_id = ? AND soul_type = ?", soul.id, soul.class.name)
+ pending.where("soul_id IS NOT NULL AND soul_id = ? AND soul_type = ?", soul.id, soul.class.base_class.name)
end
private
def store_changes