diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-28 19:03:41 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-28 19:03:41 +0000 |
commit | 5029210914059faa65358b98a9c033a40e803c54 (patch) | |
tree | 5138969cc573295c5a547eb500b0b4f790cf5924 /railties/lib/rails_generator/generators/applications | |
parent | 2686286a702e910b7fef520d901d6e95c1f4bd4b (diff) | |
download | rails-5029210914059faa65358b98a9c033a40e803c54.tar.gz rails-5029210914059faa65358b98a9c033a40e803c54.tar.bz2 rails-5029210914059faa65358b98a9c033a40e803c54.zip |
Use Array.wrap() instead of Array() and handle action_view.cache_template_loading being false
Diffstat (limited to 'railties/lib/rails_generator/generators/applications')
-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 a92747dd77..efed030de0 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 - Array(options[:env]).each do|env| + Array.wrap(options[:env]).each do|env| append_file "config/environments/#{env}.rb", "\n#{data}" end end |