diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-28 18:31:24 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-28 18:31:24 +0000 |
commit | 2686286a702e910b7fef520d901d6e95c1f4bd4b (patch) | |
tree | 3395e04d7634fe071366b8d63453c9a1ccc62c34 /railties/lib/rails_generator | |
parent | 16b3d2b621b1682f249209097c31b0a10f0f87ef (diff) | |
download | rails-2686286a702e910b7fef520d901d6e95c1f4bd4b.tar.gz rails-2686286a702e910b7fef520d901d6e95c1f4bd4b.tar.bz2 rails-2686286a702e910b7fef520d901d6e95c1f4bd4b.zip |
Ensure 16b3d2b621b1682f249209097c31b0a10f0f87ef works with Ruby 1.9
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/template_runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/template_runner.rb b/railties/lib/rails_generator/generators/applications/app/template_runner.rb index d6e3ceeba9..a92747dd77 100644 --- a/railties/lib/rails_generator/generators/applications/app/template_runner.rb +++ b/railties/lib/rails_generator/generators/applications/app/template_runner.rb @@ -111,7 +111,7 @@ module Rails "#{match}\n " << data end else - options[:env].to_a.each do|env| + Array(options[:env]).each do|env| append_file "config/environments/#{env}.rb", "\n#{data}" end end |