norr-couchrest 0.33.06 → 0.33.07
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/couchrest/mixins/properties.rb +1 -1
- metadata +1 -1
@@ -102,7 +102,7 @@ module CouchRest
|
|
102
102
|
#value.is_a?(String) ? Time.mktime_with_offset(value.dup) : value
|
103
103
|
# This fast method doesn't work 100% of the time...
|
104
104
|
# I get TypeError: no implicit conversion from nil to integer (line: 17)
|
105
|
-
|
105
|
+
value.is_a?(String) ? Time.parse(value.dup) : value
|
106
106
|
# Float instances don't get initialized with #new
|
107
107
|
elsif ((property.init_method == 'new') && klass == Float)
|
108
108
|
cast_float(value)
|