Permalink
Browse files

Rename locals in _delete_[uniques|indices].

  • Loading branch information...
1 parent 7ccfa2c commit 7f7adb4cbbd348d8c70ada58d1216381ec2a0917 @soveran committed Sep 4, 2012
Showing with 4 additions and 9 deletions.
  1. +4 −9 lib/ohm.rb
View
13 lib/ohm.rb
@@ -1498,23 +1498,18 @@ def _save_uniques(uniques)
end
end
- def _delete_uniques(_uniques)
- _uniques.each do |unique, val|
+ def _delete_uniques(uniques)
+ uniques.each do |unique, val|
db.hdel(unique, val)
db.hdel(key[:_uniques], unique)
end
end
- def _delete_indices(_indices)
- _indices.each do |index|
+ def _delete_indices(indices)
+ indices.each do |index|
db.srem(index, id)
db.srem(key[:_indices], index)
end
- # model.indices.each do |att|
- # val = atts[att.to_s]
-
- # db.srem(model.key[:indices][att][val], id)
- # end
end
def _save_indices(indices)

0 comments on commit 7f7adb4

Please sign in to comment.