Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

implementing redis#delete_all

  • Loading branch information...
commit 87226de66013ad098cf049930b363eb9d84d1d12 1 parent d5c06b8
Pete Broderick authored March 23, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/supermodel/redis.rb
2  lib/supermodel/redis.rb
@@ -69,7 +69,7 @@ def select
69 69
       end
70 70
       
71 71
       def delete_all
72  
-        raise "Not implemented"
  72
+        all.each { |rec| rec.destroy }
73 73
       end
74 74
       
75 75
       def find_by_attribute(key, value)

0 notes on commit 87226de

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