Flowdock
method

pick_layout

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActionController::Layout
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 244
      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? && !@template.__send__(:_exempt_from_layout?, default_template_name)
          else
            active_layout(layout)
          end
        else
          active_layout if action_has_layout? && candidate_for_layout?(options)
        end
      end
Register or log in to add new notes.