提交 dd13874f 编写于 作者: D David Heinemeier Hansson

Merge

[submodule "arel"]
path = arel
url = git://github.com/rails/arel.git
......@@ -79,7 +79,7 @@ class WrappedDatabaseException < StatementInvalid
def initialize(message, original_exception)
super(message)
@original_exception, = original_exception
@original_exception = original_exception
end
end
......
......@@ -28,8 +28,8 @@ namespace :db do
desc 'Create the database defined in config/database.yml for the current Rails.env - also makes test database if in development mode'
task :create => :load_config do
# Make the test database at the same time as the development one
if Rails.env == 'development'
# Make the test database at the same time as the development one, if it exists
if Rails.env.development? && ActiveRecord::Base.configurations['test']
create_database(ActiveRecord::Base.configurations['test'])
end
create_database(ActiveRecord::Base.configurations[Rails.env])
......
......@@ -14,7 +14,7 @@
s.add_dependency('activeresource', '= 3.0.0.beta')
s.add_dependency('actionmailer', '= 3.0.0.beta')
s.add_dependency('railties', '= 3.0.0.beta')
s.add_dependency('bundler', '>= 0.9.0.pre')
s.add_dependency('bundler', '>= 0.9.0.pre5')
s.rdoc_options << '--exclude' << '.'
s.has_rdoc = false
......
# Use Bundler (preferred)
begin
require File.expand_path('../../vendor/environment', __FILE__)
require File.expand_path('../../.bundle/environment', __FILE__)
rescue LoadError
require 'rubygems'
require 'bundler'
......
......@@ -59,6 +59,9 @@
require 'rails/commands/runner'
require ENV_PATH
when '--version', '-v'
puts "Rails #{Rails::VERSION::STRING}"
when '--help', '-h'
puts HELP_TEXT
when '--version', '-v'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册