diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 14:19:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 14:19:03 -0300 |
commit | 7c00cde79f7973d168b1b6aaa396594447e39a0a (patch) | |
tree | 8e69f483a8361c9a5a409e216571201b1e0e2030 /railties/lib | |
parent | 21b69b233bda5870274c84ef8178c9ad9a47c390 (diff) | |
download | rails-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.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 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 |