From 62693749c5d86903397c21f34a68ccab8bb921a2 Mon Sep 17 00:00:00 2001 From: ccocchi Date: Tue, 27 Mar 2012 18:39:26 +0200 Subject: [PATCH] Oops --- lib/rabl-fast-json/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rabl-fast-json/template.rb b/lib/rabl-fast-json/template.rb index d17987c..b5e78e2 100644 --- a/lib/rabl-fast-json/template.rb +++ b/lib/rabl-fast-json/template.rb @@ -64,7 +64,7 @@ module RablFastJson def partial(template_path, options = {}) raise "No object was given to partial" if options[:object].blank? object = options[:object] - template = Library.instance.get(template_path, @context) + template = Library.instance.get(template_path) object.respond_to?(:each) ? template.render_collection(object) : template.render_resource(object) end