removed CouchRest::Model, added more specs and fixed a bug with casted CR::ExtendedDocument
This commit is contained in:
parent
72542dc876
commit
fe489f2d38
15 changed files with 740 additions and 1528 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue