aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/CHANGELOG
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-12-13 02:15:27 +0000
committerRick Olson <technoweenie@gmail.com>2006-12-13 02:15:27 +0000
commit011f4e7413f1bde83aa62a5fc46afd6957ff9b3e (patch)
tree3d7a2bc5998994c6ba2ee1759914dac15254beef /activeresource/CHANGELOG
parent2f184c338b6379baecde8c882f72c4fa806a3a0b (diff)
downloadrails-011f4e7413f1bde83aa62a5fc46afd6957ff9b3e.tar.gz
rails-011f4e7413f1bde83aa62a5fc46afd6957ff9b3e.tar.bz2
rails-011f4e7413f1bde83aa62a5fc46afd6957ff9b3e.zip
Allow subclassed resources to share the site info [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/CHANGELOG')
-rw-r--r--activeresource/CHANGELOG15
1 files changed, 15 insertions, 0 deletions
diff --git a/activeresource/CHANGELOG b/activeresource/CHANGELOG
index 144264cd5a..679fb832d4 100644
--- a/activeresource/CHANGELOG
+++ b/activeresource/CHANGELOG
@@ -1,5 +1,20 @@
*SVN*
+* Allow subclassed resources to share the site info [Rick]
+
+ class BeastResource < ActiveResource::Base
+ self.site = 'http://beast.caboo.se'
+ end
+
+ class Forum < BeastResource
+ # taken from BeastResource
+ # self.site = 'http://beast.caboo.se'
+ end
+
+ class Topic < BeastResource
+ site << '/forums/:forum_id'
+ end
+
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]
* Use attr_accessor_with_default to dry up attribute initialization. References #6538. [Stuart Halloway]