1
0
Fork 0
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:
Neeraj Singh 2010-11-29 21:38:37 -05:00
parent f07ff29ea9
commit aa9a3227a0

View file

@ -235,13 +235,10 @@ module AbstractController
controller_path
end
# Takes the specified layout and creates a _layout method to be called
# by _default_layout
# Creates a _layout method to be called by _default_layout .
#
# If there is no explicit layout specified:
# If a layout is found in the view paths with the controller's
# name, return that string. Otherwise, use the superclass'
# layout (which might also be implied)
# If a layout is not explicitly mentioned then look for a layout with the controller's name.
# if nothing is found then try same procedure to find super class's layout.
def _write_layout_method
remove_possible_method(:_layout)