aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-10-24 19:05:43 +0000
committerJamis Buck <jamis@37signals.com>2006-10-24 19:05:43 +0000
commitd54c1b517d98e62c0beb14352f3d7c2e89df1ce6 (patch)
treecef2efbdb376466f5f496c594a0891b9ef0a6b70
parent29746e76473e3c105dbaaf0b2f7b8535f29793ca (diff)
downloadrails-d54c1b517d98e62c0beb14352f3d7c2e89df1ce6.tar.gz
rails-d54c1b517d98e62c0beb14352f3d7c2e89df1ce6.tar.bz2
rails-d54c1b517d98e62c0beb14352f3d7c2e89df1ce6.zip
to_xml needs to accept an options hash to conform with the expectations of Hash#to_xml
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activeresource/lib/active_resource/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 05013e8edd..9b5432ed37 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -130,8 +130,8 @@ module ActiveResource
connection.delete(self.class.element_path(id, prefix_options))
end
- def to_xml
- attributes.to_xml(:root => self.class.element_name)
+ def to_xml(options={})
+ attributes.to_xml({:root => self.class.element_name}.merge(options))
end
# Reloads the attributes of this object from the remote web service.