mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #25850 from ojab/layout_doc_fix
Mention that layout can call a Proc [ci skip]
This commit is contained in:
commit
b0770523e1
1 changed files with 4 additions and 1 deletions
|
@ -248,11 +248,14 @@ module ActionView
|
|||
#
|
||||
# If the specified layout is a:
|
||||
# String:: the String is the template name
|
||||
# Symbol:: call the method specified by the symbol, which will return the template name
|
||||
# Symbol:: call the method specified by the symbol
|
||||
# Proc:: call the passed Proc
|
||||
# false:: There is no layout
|
||||
# true:: raise an ArgumentError
|
||||
# nil:: Force default layout behavior with inheritance
|
||||
#
|
||||
# Return value of Proc & Symbol arguments should be String, false, true or nil
|
||||
# with the same meaning as described above.
|
||||
# ==== Parameters
|
||||
# * <tt>layout</tt> - The layout to use.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue