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:
parent
3a3a3d607e
commit
2c325182b8
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue