aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/base.rb
diff options
context:
space:
mode:
authorCheah Chu Yeow <chuyeow@gmail.com>2008-05-31 13:46:02 -0700
committerCheah Chu Yeow <chuyeow@gmail.com>2008-05-31 13:46:02 -0700
commiteb007e4197d6b6513e5accda79cf7edc3d773888 (patch)
tree0a1266d83328e61a843e754e931401696d5679ae /activeresource/lib/active_resource/base.rb
parent60e37868e40ac11f07cbda81f24dcdb0a9c68783 (diff)
downloadrails-eb007e4197d6b6513e5accda79cf7edc3d773888.tar.gz
rails-eb007e4197d6b6513e5accda79cf7edc3d773888.tar.bz2
rails-eb007e4197d6b6513e5accda79cf7edc3d773888.zip
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.
Diffstat (limited to 'activeresource/lib/active_resource/base.rb')
-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 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.