Permalink
Browse files

Check for environment.rb

  • Loading branch information...
1 parent 3072bf7 commit 4afe70790cd26e6b8f17106d031c67ce4da3efbe @jeremy jeremy committed Oct 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/app/templates/config/boot.rb
@@ -1,6 +1,6 @@
# Use Bundler (preferred)
environment = File.expand_path('../../vendor/gems/environment', __FILE__)
-if File.exist?(environment)
+if File.exist?("#{environment}.rb")
require environment
# Use 2.x style vendor/rails and RubyGems

0 comments on commit 4afe707

Please sign in to comment.