Permalink
Browse files

revert this

  • Loading branch information...
1 parent 63ea2e3 commit d192b8b3c1f7fd5e438cdf3070d6a40403267b25 @nc committed May 23, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/jbuilder.rb
  2. +2 −2 lib/jbuilder_template.rb
View
@@ -172,6 +172,7 @@ def call(*args)
case
when args.one?
array!(args.first) { |json, element| yield json, element }
+
when args.many?
extract!(*args)
end
View
@@ -9,9 +9,9 @@ def initialize(context)
end
def partial!(partial_name, options = {})
- @context.render(partial_name, options.merge(:json => new(@context)))
+ @context.render(partial_name, options.merge(:json => self))
end
-
+
private
def _new_instance
__class__.new(@context)

0 comments on commit d192b8b

Please sign in to comment.