From 234b0b7ca021cff6e36376c38b7c70321b8550f1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 26 Apr 2007 19:38:16 +0000 Subject: Added support for using classes from within a single nested module [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/CHANGELOG | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'activeresource/CHANGELOG') diff --git a/activeresource/CHANGELOG b/activeresource/CHANGELOG index 07c48505d1..e740af59be 100644 --- a/activeresource/CHANGELOG +++ b/activeresource/CHANGELOG @@ -1,5 +1,20 @@ *SVN* +* Added support for using classes from within a single nested module [DHH]. Example: + + module Highrise + class Note < ActiveResource::Base + self.site = "http://37s.sunrise.i:3000" + end + + class Comment < ActiveResource::Base + self.site = "http://37s.sunrise.i:3000" + end + end + + assert_kind_of Highrise::Comment, Note.find(1).comments.first + + * Added load_attributes_from_response as a way of loading attributes from other responses than just create [DHH] class Highrise::Task < ActiveResource::Base -- cgit v1.2.3