aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-12-13 06:43:31 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-12-13 06:43:31 +0900
commit2c325182b84ea4c75855c777b25de0f15fd218e5 (patch)
tree32a8ed1cfc70be9e3ff38a09b3e0f86bdb0f3f54 /railties
parent3a3a3d607eb2f706c117926015d2cb6ef6599ded (diff)
downloadrails-2c325182b84ea4c75855c777b25de0f15fd218e5.tar.gz
rails-2c325182b84ea4c75855c777b25de0f15fd218e5.tar.bz2
rails-2c325182b84ea4c75855c777b25de0f15fd218e5.zip
Fix warning: shadowing outer local variable - attribute
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb2
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