aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_core_extensions.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-08-16 10:34:18 -0700
committerXavier Noria <fxn@hashref.com>2011-08-16 10:36:22 -0700
commit53a13083ecc7f99ff04d3fe54f8cb1d68e486aac (patch)
tree597b23de187941ac0027aec66d7c14412aab8491 /railties/guides/source/active_support_core_extensions.textile
parent590239156714c03ad525b2248a11a3f34da3aa6a (diff)
downloadrails-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
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile4
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