Commit df92a50093747f3f07b43f81e157183b7bca7105

Authored by Daniela Feitosa
Committed by Paulo Meireles
1 parent 3196f94a

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 5 include ApplicationHelper
6 6 layout :get_layout
7 7 def get_layout
  8 + prepend_view_path('public/' + theme_path)
8 9 theme_option(:layout) || 'application'
9 10 end
10 11  
... ...