lib/abstract_controller/layouts.rb
def action_has_layout?
          return unless super

          conditions = _layout_conditions

          if only = conditions[:only]
            only.include?(action_name)
          elsif except = conditions[:except]
            !except.include?(action_name)
          else
            true
          end
        end
# Determines whether the current action has a layout by checking the
# action name against the :only and :except conditions set on the
# layout.
#
# ==== Returns
# * <tt> Boolean</tt> - True if the action has a layout, false otherwise.
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.
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 .
def action_has_layout?
          return unless super
          conditions = _layout_conditions
          if only = conditions[:only]
            only.include?(action_name)
          elsif except = conditions[:except]
            !except.include?(action_name)
          else
            true
          end
        end
def action_has_layout? return unless super conditions = _layout_conditions if only = conditions [ :only ] only . include? ( action_name ) elsif except = conditions [ :except ] ! except . include? ( action_name ) else true end end
Determines whether the current action has a layout by checking the
action name against the :only and :except conditions set on the
layout.
Determines whether the current action has a layout by checking the action name against the : only and : except conditions set on the layout .