mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rewording existing comment
This commit is contained in:
parent
f07ff29ea9
commit
aa9a3227a0
1 changed files with 3 additions and 6 deletions
|
@ -235,13 +235,10 @@ module AbstractController
|
||||||
controller_path
|
controller_path
|
||||||
end
|
end
|
||||||
|
|
||||||
# Takes the specified layout and creates a _layout method to be called
|
# Creates a _layout method to be called by _default_layout .
|
||||||
# by _default_layout
|
|
||||||
#
|
#
|
||||||
# If there is no explicit layout specified:
|
# If a layout is not explicitly mentioned then look for a layout with the controller's name.
|
||||||
# If a layout is found in the view paths with the controller's
|
# if nothing is found then try same procedure to find super class's layout.
|
||||||
# name, return that string. Otherwise, use the superclass'
|
|
||||||
# layout (which might also be implied)
|
|
||||||
def _write_layout_method
|
def _write_layout_method
|
||||||
remove_possible_method(:_layout)
|
remove_possible_method(:_layout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue