static public Method

Layout.included(base)

There's no documentation for this item.

Source Code

# File action_controller/layout.rb, line 3
def self.included(base)
  base.extend(ClassMethods)
  base.class_eval do
    # NOTE: Can't use alias_method_chain here because +render_without_layout+ is already
    # defined as a publicly exposed method
    alias_method :render_with_no_layout, :render
    alias_method :render, :render_with_a_layout

    class << self
      alias_method_chain :inherited, :layout
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.