We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63e7b1 commit 44b42f9Copy full SHA for 44b42f9
lib/jbuilder/jbuilder_template.rb
@@ -52,7 +52,7 @@ def initialize(context, options = nil)
52
# json.comments @post.comments, partial: "comments/comment", as: :comment, cached: true
53
#
54
def partial!(*args)
55
- if args.one? && _is_active_model?(args.first)
+ if _is_active_model?(args.first)
56
_render_active_model_partial args.first
57
else
58
options = args.extract_options!.dup
0 commit comments