Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ActiveResource
- class Base
- def to_xml_with_methods(options)
- methods = Array(options.delete(:methods))
- methods.each do |m|
- attributes[m] = send(m)
- end
- to_xml_without_methods(options)
- end
- alias_method_chain :to_xml, :methods
- end
- end
Add Comment
Please, Sign In to add comment