1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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