diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 11:57:28 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 11:57:28 -0300 |
commit | c1610ebc28ced5cabfe4f8d4903d60a75a949ac2 (patch) | |
tree | 8fdc811cf716902405d4deef0c48b1b97809d1e1 /railties/lib/rails | |
parent | ac8469d233821899283bcb7e6b0cd8d4203ffb35 (diff) | |
download | rails-c1610ebc28ced5cabfe4f8d4903d60a75a949ac2.tar.gz rails-c1610ebc28ced5cabfe4f8d4903d60a75a949ac2.tar.bz2 rails-c1610ebc28ced5cabfe4f8d4903d60a75a949ac2.zip |
Use Ruby 1.8 hash syntax
Diffstat (limited to 'railties/lib/rails')
-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 |