method

pick_layout

rails latest stable - Class: ActionController::Layout

Method deprecated or moved

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

pick_layout(options)
private

No documentation available.

# File actionpack/lib/action_controller/layout.rb, line 234
      def pick_layout(options)
        if options.has_key?(:layout)
          case layout = options.delete(:layout)
          when FalseClass
            nil
          when NilClass, TrueClass
            active_layout if action_has_layout? && candidate_for_layout?(:template => default_template_name)
          else
            active_layout(layout, :html_fallback => true)
          end
        else
          active_layout if action_has_layout? && candidate_for_layout?(options)
        end
      end