diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-04 19:14:53 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-04 19:14:53 +0000 |
commit | 2ee6229bd8cf3a87ede0cd8b573e3faf5a15dbfa (patch) | |
tree | 6448472533f1bc97162e3d498281a306030a932a /activesupport/CHANGELOG | |
parent | 5cbc062c8ad82271de11ae245d2bdaeffc0c4da7 (diff) | |
download | rails-2ee6229bd8cf3a87ede0cd8b573e3faf5a15dbfa.tar.gz rails-2ee6229bd8cf3a87ede0cd8b573e3faf5a15dbfa.tar.bz2 rails-2ee6229bd8cf3a87ede0cd8b573e3faf5a15dbfa.zip |
Added delegation support to Module that allows multiple delegations at once (unlike Forwardable in the stdlib) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 4b6c3096d3..36972ab8dd 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,16 @@ *SVN* +* Added delegation support to Module that allows multiple delegations at once (unlike Forwardable in the stdlib) [DHH]. Example: + + class Account < ActiveRecord::Base + has_one :subscription + delegate :free?, :paying?, :to => :subscription + delegate :overdue?, :to => "subscription.last_payment" + end + + account.free? # => account.subscription.free? + account.overdue? # => account.subscription.last_payment.overdue? + * Fix Reloadable to handle the case where a class that has been 'removed' has not yet been garbage collected. [Nicholas Seckar] * Don't allow Reloadable to be included into Modules. |