Skip to content

Commit 0622464

Browse files
committed
Back to fetch
1 parent 25f48f4 commit 0622464

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
@@ -286,7 +286,7 @@ def _extract(object, attributes)
286286
end
287287

288288
def _extract_hash_values(object, attributes)
289-
attributes.each{ |key| _set_value key, _format_keys(object[key]) }
289+
attributes.each{ |key| _set_value key, _format_keys(object.fetch(key)) }
290290
end
291291

292292
def _extract_method_values(object, attributes)

0 commit comments

Comments
 (0)