to_xml patch with modules


/ Published in: Ruby
Save to your folder(s)

Fix the broken to_xml when using with modules. Also limit to protected_attributes by default. This can be saved to config/initializers/to_xml_patch.rb

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.