Commit 290c4b8ed97cbce2a4b3d96a3b1ba9c9a105e68e

Authored by Rodrigo Souto
1 parent d35bce8d

application-helper: allow theme_include to receive options

(ActionItem2950)
Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -407,10 +407,11 @@ module ApplicationHelper @@ -407,10 +407,11 @@ module ApplicationHelper
407 nil 407 nil
408 end 408 end
409 409
410 - def theme_include(template) 410 + def theme_include(template, options = {})
411 file = theme_view_file(template) 411 file = theme_view_file(template)
  412 + options.merge!({:file => file, :use_full_path => false})
412 if file 413 if file
413 - render :file => file, :use_full_path => false 414 + render options
414 else 415 else
415 nil 416 nil
416 end 417 end