From 290c4b8ed97cbce2a4b3d96a3b1ba9c9a105e68e Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 14 Jan 2014 11:34:25 -0300 Subject: [PATCH] application-helper: allow theme_include to receive options --- app/helpers/application_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7068422..c64a843 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -407,10 +407,11 @@ module ApplicationHelper nil end - def theme_include(template) + def theme_include(template, options = {}) file = theme_view_file(template) + options.merge!({:file => file, :use_full_path => false}) if file - render :file => file, :use_full_path => false + render options else nil end -- libgit2 0.21.2