Flowdock
method

pick_layout

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - 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

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.