From eb007e4197d6b6513e5accda79cf7edc3d773888 Mon Sep 17 00:00:00 2001 From: Cheah Chu Yeow Date: Sat, 31 May 2008 13:46:02 -0700 Subject: Make a note about script/destroy in 'script/generate scaffold' usage description. Make a note about 'script/generate scaffold' requiring a singular model name. Remove :nodoc: for a documented method. --- activeresource/lib/active_resource/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activeresource') diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 253d336dc9..ca9e665ba3 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -288,7 +288,7 @@ module ActiveResource end # Returns the current format, default is ActiveResource::Formats::XmlFormat. - def format # :nodoc: + def format read_inheritable_attribute("format") || ActiveResource::Formats[:xml] end @@ -812,7 +812,7 @@ module ActiveResource # Person.delete(guys_id) # that_guy.exists? # => false def exists? - !new? && self.class.exists?(to_param, :params => prefix_options) + !new? && self.class.exists?(to_param, :params => prefix_options) end # A method to convert the the resource to an XML string. -- cgit v1.2.3