aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-26 02:11:16 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-26 02:11:16 +0000
commit37e8e35c92222537ff82aa3c47cadebad4c32ce0 (patch)
tree968a1d77b11ea690827b0b8e06751e257c45ee1a /activeresource/CHANGELOG
parent46b58d80b95232bff0435d9e5ab0a3281872005f (diff)
downloadrails-37e8e35c92222537ff82aa3c47cadebad4c32ce0.tar.gz
rails-37e8e35c92222537ff82aa3c47cadebad4c32ce0.tar.bz2
rails-37e8e35c92222537ff82aa3c47cadebad4c32ce0.zip
Added load_attributes_from_response as a way of loading attributes from other responses than just create [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/CHANGELOG')
-rw-r--r--activeresource/CHANGELOG11
1 files changed, 11 insertions, 0 deletions
diff --git a/activeresource/CHANGELOG b/activeresource/CHANGELOG
index 807f887a96..07c48505d1 100644
--- a/activeresource/CHANGELOG
+++ b/activeresource/CHANGELOG
@@ -1,5 +1,16 @@
*SVN*
+* Added load_attributes_from_response as a way of loading attributes from other responses than just create [DHH]
+
+ class Highrise::Task < ActiveResource::Base
+ def complete
+ load_attributes_from_response(post(:complete))
+ end
+ end
+
+ ...will set "done_at" when complete is called.
+
+
* Added support for calling custom methods #6979 [rwdaigle]
Person.find(:managers) # => GET /people/managers.xml