removed CouchRest::Model, added more specs and fixed a bug with casted CR::ExtendedDocument

This commit is contained in:
Matt Aimonetti 2009-02-24 22:51:13 -08:00
parent 72542dc876
commit fe489f2d38
15 changed files with 740 additions and 1528 deletions

View file

@ -18,6 +18,8 @@ module CouchRest
def parse_type(type)
if type.nil?
@type = 'String'
elsif type.is_a?(Array) && type.empty?
@type = 'Array'
else
@type = type.is_a?(Array) ? [type.first.to_s] : type.to_s
end