Permalink
Browse files

Rename toindices to to_indices.

  • Loading branch information...
1 parent 7f7adb4 commit f6eeb9e10cfdabc265bba905ec1a17c029690dc0 @soveran committed Sep 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ohm.rb
View
6 lib/ohm.rb
@@ -1411,10 +1411,10 @@ def self.filters(dict)
"If you want to find by ID, use #{self}[id] instead."
end
- dict.map { |k, v| toindices(k, v) }.flatten
+ dict.map { |k, v| to_indices(k, v) }.flatten
end
- def self.toindices(att, val)
+ def self.to_indices(att, val)
raise IndexNotFound unless indices.include?(att)
if val.kind_of?(Enumerable)
@@ -1514,7 +1514,7 @@ def _delete_indices(indices)
def _save_indices(indices)
indices.each do |att, val|
- model.toindices(att, val).each do |index|
+ model.to_indices(att, val).each do |index|
db.sadd(index, id)
db.sadd(key[:_indices], index)
end

0 comments on commit f6eeb9e

Please sign in to comment.