aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource
diff options
context:
space:
mode:
authorClemens Kofler <clemens@railway.at>2008-09-02 15:33:49 +0200
committerJeremy Kemper <jeremy@bitsweat.net>2008-09-03 00:55:23 +0200
commit288e947ae1737645985fde76f5382baaff700505 (patch)
tree3b48855cc336f3f1d04f2a14aa68b63ffc52ddba /activeresource/lib/active_resource
parent4d092ba2089de185cc8f5a8d16432b348e102046 (diff)
downloadrails-288e947ae1737645985fde76f5382baaff700505.tar.gz
rails-288e947ae1737645985fde76f5382baaff700505.tar.bz2
rails-288e947ae1737645985fde76f5382baaff700505.zip
Some performance goodness for inheritable attributes.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activeresource/lib/active_resource')
-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 da9f6d6893..749cc59284 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -283,13 +283,13 @@ module ActiveResource
format = mime_type_reference_or_format.is_a?(Symbol) ?
ActiveResource::Formats[mime_type_reference_or_format] : mime_type_reference_or_format
- write_inheritable_attribute("format", format)
+ write_inheritable_attribute(:format, format)
connection.format = format if site
end
# Returns the current format, default is ActiveResource::Formats::XmlFormat.
def format
- read_inheritable_attribute("format") || ActiveResource::Formats[:xml]
+ read_inheritable_attribute(:format) || ActiveResource::Formats[:xml]
end
# Sets the number of seconds after which requests to the REST API should time out.