lib/ohm.rb in ohm-1.0.0.rc2 vs lib/ohm.rb in ohm-1.0.0.rc3
- old
+ new
@@ -1431,12 +1431,10 @@
def _delete_indices(atts)
model.indices.each do |att|
val = atts[att.to_s]
- if val
- model.key[:indices][att][val].srem(id)
- end
+ model.key[:indices][att][val].srem(id)
end
end
def _save_indices(indices)
indices.each do |att, val|