From 97296b11e2c4011ea5522c4de0153f7ffa6a47ae Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 15 Oct 2009 14:50:02 -0700 Subject: Have config/application.rb contain the application definition and require that file instead of config/boot.rb or config/environment.rb in script/*. --- railties/lib/rails/commands/generate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/commands/generate.rb') diff --git a/railties/lib/rails/commands/generate.rb b/railties/lib/rails/commands/generate.rb index 32cabcab10..cfa6a51d94 100755 --- a/railties/lib/rails/commands/generate.rb +++ b/railties/lib/rails/commands/generate.rb @@ -1,5 +1,5 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators')) -require "#{RAILS_ROOT}/config/environment" +Rails.application.new if ARGV.size == 0 Rails::Generators.help -- cgit v1.2.3