method
inherited_with_layout
rails latest stable - Class:
ActionController::Layout::ClassMethods
inherited_with_layout(child)private
No documentation available.
# 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