removing unused sanitization code in mongoid spec

This commit is contained in:
Ryan Bates 2011-01-04 10:53:31 -08:00
parent f759ab7e54
commit bd9480cb51

View File

@ -11,24 +11,6 @@ if ENV["MODEL_ADAPTER"] == "mongoid"
include Mongoid::Document
referenced_in :mongoid_category
class << self
protected
def sanitize_sql(hash_cond)
hash_cond
end
def sanitize_hash(hash)
hash.map do |name, value|
if Hash === value
sanitize_hash(value).map{|cond| "#{name}.#{cond}"}
else
"#{name}=#{value}"
end
end.flatten
end
end
end
Mongoid.configure do |config|