Skip to content

Commit b0c88ad

Browse files
committed
Remove call to Kernel.block_given?
1 parent 44b42f9 commit b0c88ad

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
@@ -204,7 +204,7 @@ def extract!(object, *attributes)
204204
end
205205

206206
def call(object, *attributes, &block)
207-
if ::Kernel.block_given?
207+
if block
208208
_array object, &block
209209
else
210210
_extract object, attributes

0 commit comments

Comments
 (0)