lib/plezi/handlers/controller_magic.rb in plezi-0.12.9 vs lib/plezi/handlers/controller_magic.rb in plezi-0.12.10

- old
+ new

@@ -193,10 +193,9 @@ # Circumvents I18n persistance issues (live updating and thread data storage). I18n.locale = options[:locale] || I18n.default_locale if defined?(I18n) # sets the locale to nil for default behavior even if the locale was set by a previous action - removed: # && options[:locale] # find template and create template object template = [template] if template.is_a?(String) filename = ( template.is_a?(Array) ? File.join( host_params[:templates].to_s, *template) : File.join( host_params[:templates].to_s, *template.to_s.split('_') ) ) + (options[:type].empty? ? '': ".#{options[:type]}") - puts "searching for #{filename}" ::Plezi::Renderer.render filename, binding, &block end # returns the initial method called (or about to be called) by the router for the HTTP request. #