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