method
inherited_with_layout
inherited_with_layout(child)
private
Hide source
# File actionpack/lib/action_controller/layout.rb, line 180 def inherited_with_layout(child) inherited_without_layout(child) unless child.name.blank? layout_match = child.name.underscore.sub(/_controller$/, '').sub(/^controllers\//, '') child.layout(layout_match, {}, true) unless child.layout_list.grep(%r{layouts/#{layout_match}(\.[a-z][0-9a-z]*)+$}).empty? end end