Commit b176a864627bb5b30790653fa311f05931f462d2
1 parent
7d22740a
Exists in
master
and in
22 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.rb
| @@ -7,6 +7,7 @@ class ApplicationController < ActionController::Base | @@ -7,6 +7,7 @@ class ApplicationController < ActionController::Base | ||
| 7 | include ApplicationHelper | 7 | include ApplicationHelper |
| 8 | layout :get_layout | 8 | layout :get_layout |
| 9 | def get_layout | 9 | def get_layout |
| 10 | + prepend_view_path('public/' + theme_path) | ||
| 10 | theme_option(:layout) || 'application' | 11 | theme_option(:layout) || 'application' |
| 11 | end | 12 | end |
| 12 | 13 |