method

action_has_layout?

rails latest stable - Class: AbstractController::Layouts::ClassMethods::LayoutConditions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

action_has_layout?()
public

Determines whether the current action has a layout by checking the action name against the :only and :except conditions set on the layout.

Returns

  • Boolean - True if the action has a layout, false otherwise.