Flowdock
method

pick_layout

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActionController::Layout
pick_layout(template_with_options, 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 276
      def pick_layout(template_with_options, options)
        if template_with_options
          case layout = options[:layout]
            when FalseClass
              nil
            when NilClass, TrueClass
              active_layout if action_has_layout?
            else
              active_layout(layout)
          end
        else
          active_layout if action_has_layout?
        end
      end
Register or log in to add new notes.