Skip to content

Commit 44b42f9

Browse files
committed
Remove call to one?
1 parent b63e7b1 commit 44b42f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder/jbuilder_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def initialize(context, options = nil)
5252
# json.comments @post.comments, partial: "comments/comment", as: :comment, cached: true
5353
#
5454
def partial!(*args)
55-
if args.one? && _is_active_model?(args.first)
55+
if _is_active_model?(args.first)
5656
_render_active_model_partial args.first
5757
else
5858
options = args.extract_options!.dup

0 commit comments

Comments
 (0)