Skip to content
This repository
Browse code

Ensure 16b3d2b works with Ruby 1.9

  • Loading branch information...
commit 2686286a702e910b7fef520d901d6e95c1f4bd4b 1 parent 16b3d2b
Pratik authored February 28, 2009
2  railties/lib/rails_generator/generators/applications/app/template_runner.rb
@@ -111,7 +111,7 @@ def environment(data = nil, options = {}, &block)
111 111
             "#{match}\n  " << data
112 112
           end
113 113
         else
114  
-          options[:env].to_a.each do|env|
  114
+          Array(options[:env]).each do|env|
115 115
             append_file "config/environments/#{env}.rb", "\n#{data}"
116 116
           end
117 117
         end

0 notes on commit 2686286

Please sign in to comment.
Something went wrong with that request. Please try again.