test/rails_app/app/data_mapper/shim.rb in dm-devise-1.3.0 vs test/rails_app/app/data_mapper/shim.rb in dm-devise-1.3.1

- old
+ new

@@ -18,8 +18,12 @@ all.destroy end end def to_xml(*args) - "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + super + "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + super + "\n" + end + + def to_json(*args) + {self.model.name.downcase => JSON.parse(super)}.to_json end end