diff options
author | Xavier Noria <fxn@hashref.com> | 2011-08-16 10:34:18 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-16 10:36:22 -0700 |
commit | 53a13083ecc7f99ff04d3fe54f8cb1d68e486aac (patch) | |
tree | 597b23de187941ac0027aec66d7c14412aab8491 | |
parent | 590239156714c03ad525b2248a11a3f34da3aa6a (diff) | |
download | rails-53a13083ecc7f99ff04d3fe54f8cb1d68e486aac.tar.gz rails-53a13083ecc7f99ff04d3fe54f8cb1d68e486aac.tar.bz2 rails-53a13083ecc7f99ff04d3fe54f8cb1d68e486aac.zip |
AS guide: document in Module#delegate that the method must be public in the target
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 8716e94bd9..38920c2edb 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -888,7 +888,9 @@ end It is shorter, and the intention more obvious. -The macro accepts several methods: +The method must be public in the target. + +The +delegate+ macro accepts several methods: <ruby> delegate :name, :age, :address, :twitter, :to => :profile |