aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-03-13 14:20:43 -0700
committerJosé Valim <jose.valim@gmail.com>2012-03-13 14:20:43 -0700
commit2d3550c4be2cf3b30d25e1c94baa478c19471766 (patch)
tree6a72f87270c70a042d175ff807746695418412fd /railties/lib
parentae67a63fe9c5be4b8e2ef74239ec340e99d231ac (diff)
parent7c00cde79f7973d168b1b6aaa396594447e39a0a (diff)
downloadrails-2d3550c4be2cf3b30d25e1c94baa478c19471766.tar.gz
rails-2d3550c4be2cf3b30d25e1c94baa478c19471766.tar.bz2
rails-2d3550c4be2cf3b30d25e1c94baa478c19471766.zip
Merge pull request #5415 from rafaelfranca/refactor
Refactor the test_unit scaffold generator to use the key_value method
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 4c07baae36..8e796aada9 100644
--- a/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
+++ b/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
@@ -26,7 +26,7 @@ module TestUnit
accessible_attributes.map do |a|
name = a.name
- "#{name}: @#{singular_table_name}.#{name}"
+ key_value name, "@#{singular_table_name}.#{name}"
end.sort.join(', ')
end