diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/applications/app')
-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 |