README.md in model_xml-1.0.5 vs README.md in model_xml-1.0.9
- old
+ new
@@ -27,9 +27,11 @@
<first_name>John</first_name>
<last_name>Jones</last_name>
<dob>1970-12-23</dob>
</user>
+Just like ActiveRecord's to_xml method, the :only, :except, and :skip_instruct options are supported.
+
Note that (unlike ActiveRecords's to_xml) the field names can be any method in your object, not just database columns - eg
class User < ActiveRecord::Base
model_xml :full_name, :dob