aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-03-13 14:19:03 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-03-13 14:19:03 -0300
commit7c00cde79f7973d168b1b6aaa396594447e39a0a (patch)
tree8e69f483a8361c9a5a409e216571201b1e0e2030 /railties/lib
parent21b69b233bda5870274c84ef8178c9ad9a47c390 (diff)
downloadrails-7c00cde79f7973d168b1b6aaa396594447e39a0a.tar.gz
rails-7c00cde79f7973d168b1b6aaa396594447e39a0a.tar.bz2
rails-7c00cde79f7973d168b1b6aaa396594447e39a0a.zip
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