Actions
Feature #12556
openMethod for conditional layouts
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
Updated by Etienne Massip about 12 years ago
Actions