Project

General

Profile

Actions

Feature #12556

open

Method for conditional layouts

Added by Kirill Bezrukov (RedmineUP) over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Would be nice if we be able to override base layout using patches. It can helps selecting dynamic layouts in plugins

class ApplicationController < ActionController::Base
  layout :get_layout

  ...

private
  def get_layout
      "base" 
  end
end
Actions

Also available in: Atom PDF