Commit e60922134d3e48479ebeceed6912a05d85e27a27
Committed by
Valessio Brito
1 parent
c008814f
Exists in
master
and in
29 other branches
updating application controller to support layouts from themes
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/application_controller.rb
| @@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base | @@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base | ||
| 5 | include ApplicationHelper | 5 | include ApplicationHelper |
| 6 | layout :get_layout | 6 | layout :get_layout |
| 7 | def get_layout | 7 | def get_layout |
| 8 | + prepend_view_path('public/' + theme_path) | ||
| 8 | theme_option(:layout) || 'application' | 9 | theme_option(:layout) || 'application' |
| 9 | end | 10 | end |
| 10 | 11 |