private Method

Layout.action_has_layout?

There's no documentation for this item.

Source Code

# File action_controller/layout.rb, line 295
def action_has_layout?
  if conditions = self.class.layout_conditions
    case
      when only = conditions[:only]
        only.include?(action_name)
      when except = conditions[:except]
        !except.include?(action_name) 
      else
        true
    end
  else
    true
  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.