diff options
author | Clemens Kofler <clemens@railway.at> | 2008-09-02 15:33:49 +0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-09-03 00:55:23 +0200 |
commit | 288e947ae1737645985fde76f5382baaff700505 (patch) | |
tree | 3b48855cc336f3f1d04f2a14aa68b63ffc52ddba /activeresource/lib/active_resource | |
parent | 4d092ba2089de185cc8f5a8d16432b348e102046 (diff) | |
download | rails-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.rb | 4 |
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. |