mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge
This commit is contained in:
commit
dd13874ff6
6 changed files with 8 additions and 8 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "arel"]
|
|
||||||
path = arel
|
|
||||||
url = git://github.com/rails/arel.git
|
|
|
@ -79,7 +79,7 @@ module ActiveRecord #:nodoc:
|
||||||
|
|
||||||
def initialize(message, original_exception)
|
def initialize(message, original_exception)
|
||||||
super(message)
|
super(message)
|
||||||
@original_exception, = original_exception
|
@original_exception = original_exception
|
||||||
end
|
end
|
||||||
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'
|
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
|
task :create => :load_config do
|
||||||
# Make the test database at the same time as the development one
|
# Make the test database at the same time as the development one, if it exists
|
||||||
if Rails.env == 'development'
|
if Rails.env.development? && ActiveRecord::Base.configurations['test']
|
||||||
create_database(ActiveRecord::Base.configurations['test'])
|
create_database(ActiveRecord::Base.configurations['test'])
|
||||||
end
|
end
|
||||||
create_database(ActiveRecord::Base.configurations[Rails.env])
|
create_database(ActiveRecord::Base.configurations[Rails.env])
|
||||||
|
|
|
@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
||||||
s.add_dependency('activeresource', '= 3.0.0.beta')
|
s.add_dependency('activeresource', '= 3.0.0.beta')
|
||||||
s.add_dependency('actionmailer', '= 3.0.0.beta')
|
s.add_dependency('actionmailer', '= 3.0.0.beta')
|
||||||
s.add_dependency('railties', '= 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.rdoc_options << '--exclude' << '.'
|
||||||
s.has_rdoc = false
|
s.has_rdoc = false
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Use Bundler (preferred)
|
# Use Bundler (preferred)
|
||||||
begin
|
begin
|
||||||
require File.expand_path('../../vendor/environment', __FILE__)
|
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'bundler'
|
require 'bundler'
|
||||||
|
|
|
@ -59,6 +59,9 @@ when 'runner'
|
||||||
require 'rails/commands/runner'
|
require 'rails/commands/runner'
|
||||||
require ENV_PATH
|
require ENV_PATH
|
||||||
|
|
||||||
|
|
||||||
|
when '--version', '-v'
|
||||||
|
puts "Rails #{Rails::VERSION::STRING}"
|
||||||
when '--help', '-h'
|
when '--help', '-h'
|
||||||
puts HELP_TEXT
|
puts HELP_TEXT
|
||||||
when '--version', '-v'
|
when '--version', '-v'
|
||||||
|
|
Loading…
Reference in a new issue