diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-29 21:38:37 -0500 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-29 21:38:59 -0500 |
commit | aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9 (patch) | |
tree | 5490ffed26c2171ac8d5cd0aa9b7aeb81693d94e | |
parent | f07ff29ea9347b0320181b6c4d4ee8f665f11554 (diff) | |
download | rails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.tar.gz rails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.tar.bz2 rails-aa9a3227a0151af87e1eb5a6c4b7b0b095fc33c9.zip |
Rewording existing comment
-rw-r--r-- | actionpack/lib/abstract_controller/layouts.rb | 9 |
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) |