Skip to content
Browse files

Rewording existing comment

  • Loading branch information...
1 parent 554e89f commit e6f2ef3a155edf15cf52b9e548160ca6881b2012 Neeraj Singh committed with fxn Nov 29, 2010
Showing with 3 additions and 6 deletions.
  1. +3 −6 actionpack/lib/abstract_controller/layouts.rb
View
9 actionpack/lib/abstract_controller/layouts.rb
@@ -235,13 +235,10 @@ def _implied_layout_name
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)

0 comments on commit e6f2ef3

Please sign in to comment.
Something went wrong with that request. Please try again.