georgepalmer-couch_foo 0.7.7 → 0.7.8
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/VERSION.yml +1 -1
- data/lib/couch_foo/serializers/xml_serializer.rb +2 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -268,6 +268,7 @@ module CouchFoo #:nodoc:
|
|
268
268
|
|
269
269
|
def initialize(name, record)
|
270
270
|
@name, @record = name, record
|
271
|
+
@name = name.gsub("_", "") if name[0] == '_'[0] # _id and _rev are not valid XML tags
|
271
272
|
|
272
273
|
@type = compute_type
|
273
274
|
@value = compute_value
|
@@ -309,7 +310,7 @@ module CouchFoo #:nodoc:
|
|
309
310
|
type = @record.class.property_types[name.to_sym]
|
310
311
|
|
311
312
|
# Hack until get these types into properties structure
|
312
|
-
if name.to_sym == :
|
313
|
+
if name.to_sym == :id || name.to_sym == :rev || name.to_sym == :ruby_class
|
313
314
|
type = String
|
314
315
|
end
|
315
316
|
|