aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/layouts.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-11-29 21:38:37 -0500
committerNeeraj Singh <neerajdotname@gmail.com>2010-11-29 21:38:59 -0500
commitaa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9 (patch)
tree5490ffed26c2171ac8d5cd0aa9b7aeb81693d94e /actionpack/lib/abstract_controller/layouts.rb
parentf07ff29ea9347b0320181b6c4d4ee8f665f11554 (diff)
downloadrails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.tar.gz
rails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.tar.bz2
rails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.zip
Rewording existing comment
Diffstat (limited to 'actionpack/lib/abstract_controller/layouts.rb')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index b68c7d9216..606f7eedec 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -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)