README.md in model_xml-1.0.4 vs README.md in model_xml-1.0.5

- old
+ new

@@ -63,9 +63,17 @@ password last_logged_in end end +The above relies on method_missing to work - so note that if you are using a ruby reserved method name (like id) for your tag, you may need to use the longer form block notation with the field operator: + + class User < ActiveRecord::Base + model_xml do + field :id, proc {|u| u.some_other_id_method} + end + end + For conditional data sets, you can declare named blocks using block notation like this: class User < ActiveRecord::Base model_xml :first_name, :last_name model_xml :personal_details do