Skip to content

Commit 5a9f0f5

Browse files
committed
Address rubocop feedback
1 parent faf99ec commit 5a9f0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape-swagger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def is_primitive?(type)
426426
end
427427

428428
def generate_typeref(type)
429-
type = type.to_s.sub(/^[A-Z]/) {|f| f.downcase } if type.kind_of?(Class)
429+
type = type.to_s.sub(/^[A-Z]/) { |f| f.downcase } if type.is_a?(Class)
430430
if is_primitive? type
431431
{ 'type' => type }
432432
else

0 commit comments

Comments
 (0)