mirror of https://github.com/rails/rails
Fix warning: shadowing outer local variable - attribute
This commit is contained in:
parent
3a3a3d607e
commit
2c325182b8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue