instance method inherited_with_layout

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

inherited_with_layout(child)

No documentation comment.

Parameters

child req
Source
# File actionpack/lib/action_controller/layout.rb, line 188
        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

Defined in actionpack/lib/action_controller/layout.rb line 188 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Layout::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close