Skip to content

Commit

Permalink
to_xml needs to accept an options hash to conform with the expectatio…
Browse files Browse the repository at this point in the history
…ns of Hash#to_xml

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Oct 24, 2006
1 parent 29746e7 commit d54c1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activeresource/lib/active_resource/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def destroy
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.
Expand Down

0 comments on commit d54c1b5

Please sign in to comment.