Commit df92a50093747f3f07b43f81e157183b7bca7105
Committed by
Paulo Meireles
1 parent
3196f94a
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 |