Commit 5d43b171b07714f4ca5e442a5640194681acb607

Authored by Daniela Feitosa
Committed by Rafael Martins
1 parent 1850e758

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
@@ -9,6 +9,7 @@ class ApplicationController < ActionController::Base @@ -9,6 +9,7 @@ class ApplicationController < ActionController::Base
9 include ApplicationHelper 9 include ApplicationHelper
10 layout :get_layout 10 layout :get_layout
11 def get_layout 11 def get_layout
  12 + prepend_view_path('public/' + theme_path)
12 theme_option(:layout) || 'application' 13 theme_option(:layout) || 'application'
13 end 14 end
14 15