Fix warning: shadowing outer local variable - attribute

This commit is contained in:
Ryuta Kamizono 2018-12-13 06:43:31 +09:00
parent 3a3a3d607e
commit 2c325182b8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module TestUnit # :nodoc:
end
def boolean?(name)
attribute = attributes.find { |attribute| attribute.name == name }
attribute = attributes.find { |attr| attr.name == name }
attribute&.type == :boolean
end
end