norr-couchrest 0.33.06 → 0.33.07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|