mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
AS guide: document in Module#delegate that the method must be public in the target
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user