aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/CHANGELOG
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-21 22:12:21 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-21 22:12:21 +0000
commite6988ef2ce31553c9c5f52a8d34899e39df67694 (patch)
tree88d64ef6f940fa3e8efe09e8ee0719dd2ff78da7 /activeresource/CHANGELOG
parent93c816f0c2ad45ef898de7c2dd2987f9ccb02678 (diff)
downloadrails-e6988ef2ce31553c9c5f52a8d34899e39df67694.tar.gz
rails-e6988ef2ce31553c9c5f52a8d34899e39df67694.tar.bz2
rails-e6988ef2ce31553c9c5f52a8d34899e39df67694.zip
Subclasses share superclass site until explicitly set. This way you can set Superclass.site = ... after subclasses have been defined.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/CHANGELOG')
-rw-r--r--activeresource/CHANGELOG8
1 files changed, 4 insertions, 4 deletions
diff --git a/activeresource/CHANGELOG b/activeresource/CHANGELOG
index 679fb832d4..1079156fdc 100644
--- a/activeresource/CHANGELOG
+++ b/activeresource/CHANGELOG
@@ -1,18 +1,18 @@
*SVN*
-* Allow subclassed resources to share the site info [Rick]
+* Allow subclassed resources to share the site info [Rick, Jeremy Kemper]
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'
+ self.site += '/forums/:forum_id'
end
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]