Skip to content

Commit d3740a3

Browse files
committed
Default attributes to nil
1 parent b0c88ad commit d3740a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def target!
238238

239239
alias_method :method_missing, :set!
240240

241-
def _set(key, value = BLANK, attributes, &block)
241+
def _set(key, value = BLANK, attributes = nil, &block)
242242
result = if block
243243
if _blank?(value)
244244
# json.comments { ... }

0 commit comments

Comments
 (0)