aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-12-28 17:12:35 +0000
committerRick Olson <technoweenie@gmail.com>2007-12-28 17:12:35 +0000
commite8730713d2744ab0149ad03997ad05f336c31941 (patch)
treec7be2a44a573aee844b8691b4ec8af5f11e46b29 /activeresource/lib
parentc54b915825b034b431b4b0cdb28f8ca00fca808d (diff)
downloadrails-e8730713d2744ab0149ad03997ad05f336c31941.tar.gz
rails-e8730713d2744ab0149ad03997ad05f336c31941.tar.bz2
rails-e8730713d2744ab0149ad03997ad05f336c31941.zip
Allow setting ActiveResource::Base#format before #site. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 3383f542f9..76f4ca03db 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -192,7 +192,7 @@ module ActiveResource
ActiveResource::Formats[mime_type_reference_or_format] : mime_type_reference_or_format
write_inheritable_attribute("format", format)
- connection.format = format
+ connection.format = format if site
end
# Returns the current format, default is ActiveResource::Formats::XmlFormat