diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-13 06:43:31 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-13 06:43:31 +0900 |
commit | 2c325182b84ea4c75855c777b25de0f15fd218e5 (patch) | |
tree | 32a8ed1cfc70be9e3ff38a09b3e0f86bdb0f3f54 /railties/lib/rails/generators/test_unit | |
parent | 3a3a3d607eb2f706c117926015d2cb6ef6599ded (diff) | |
download | rails-2c325182b84ea4c75855c777b25de0f15fd218e5.tar.gz rails-2c325182b84ea4c75855c777b25de0f15fd218e5.tar.bz2 rails-2c325182b84ea4c75855c777b25de0f15fd218e5.zip |
Fix warning: shadowing outer local variable - attribute
Diffstat (limited to 'railties/lib/rails/generators/test_unit')
-rw-r--r-- | railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb b/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb index 662b5e206e..6df50c3217 100644 --- a/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +++ b/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb @@ -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 |