Updated config/boot.rb to rails 2.3.10
This commit is contained in:
parent
971e9f145a
commit
50a45cfa7d
1 changed files with 10 additions and 6 deletions
|
@ -62,8 +62,12 @@ module Rails
|
||||||
gem 'rails'
|
gem 'rails'
|
||||||
end
|
end
|
||||||
rescue Gem::LoadError => load_error
|
rescue Gem::LoadError => load_error
|
||||||
$stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
|
if load_error.message =~ /Could not find RubyGem rails/
|
||||||
exit 1
|
STDERR.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
raise
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
@ -82,8 +86,8 @@ module Rails
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_rubygems
|
def load_rubygems
|
||||||
|
min_version = '1.3.2'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
min_version = '1.3.1'
|
|
||||||
unless rubygems_version >= min_version
|
unless rubygems_version >= min_version
|
||||||
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
|
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -99,9 +103,9 @@ module Rails
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def read_environment_rb
|
def read_environment_rb
|
||||||
File.read("#{RAILS_ROOT}/config/environment.rb")
|
File.read("#{RAILS_ROOT}/config/environment.rb")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue