Skip to content

Commit

Permalink
fix delete_all to call underlying delete, not destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuman committed Apr 9, 2012
1 parent 57d4d74 commit 53644ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/supermodel/redis.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def select
end end


def delete_all def delete_all
all.each { |rec| rec.destroy } all.each { |rec| rec.delete }
end end


def find_by_attribute(key, value) def find_by_attribute(key, value)
Expand Down

0 comments on commit 53644ac

Please sign in to comment.