aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-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