From 3951277fa773cb85a47fb37e34d4762563c463ba Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 3 Sep 2014 15:37:04 -0300 Subject: [PATCH] Fix support of custom layout in themes --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c7d209a..0f630af 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base theme_layout = theme_option(:layout) if theme_layout - theme_view_file('layouts/'+theme_layout) || theme_layout + (theme_view_file('layouts/'+theme_layout) || theme_layout).to_s else 'application' end -- libgit2 0.21.2