Permalink
Browse files

AS guide: document in Module#delegate that the method must be public …

…in the target
  • Loading branch information...
1 parent 5902391 commit 53a13083ecc7f99ff04d3fe54f8cb1d68e486aac @fxn fxn committed Aug 16, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit 53a1308

Please sign in to comment.