Browse files

Ensure 16b3d2b works with Ruby 1.9

  • Loading branch information...
1 parent 16b3d2b commit 2686286a702e910b7fef520d901d6e95c1f4bd4b @lifo lifo committed Feb 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/generators/applications/app/template_runner.rb
View
2 railties/lib/rails_generator/generators/applications/app/template_runner.rb
@@ -111,7 +111,7 @@ def environment(data = nil, options = {}, &block)
"#{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

0 comments on commit 2686286

Please sign in to comment.