Skip to content
Browse files

fix delete_all to call underlying delete, not destroy

  • Loading branch information...
1 parent 57d4d74 commit 53644ac385ba360fa817b3d2b1322899548d0a78 @jschuman jschuman committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/supermodel/redis.rb
View
2 lib/supermodel/redis.rb
@@ -69,7 +69,7 @@ def select
end
def delete_all
- all.each { |rec| rec.destroy }
+ all.each { |rec| rec.delete }
end
def find_by_attribute(key, value)

0 comments on commit 53644ac

Please sign in to comment.
Something went wrong with that request. Please try again.