X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62f999cd835dad3c16ea46e340bc15b0e43f31db..adbee9a5520fe5758c507a87a6c5008e71a43f39:/config/boot.rb?ds=sidebyside diff --git a/config/boot.rb b/config/boot.rb index 0a516880c..9759b93f3 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -44,6 +44,7 @@ module Rails def load_initializer require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" Rails::Initializer.run(:install_gem_spec_stubs) + Rails::GemDependency.add_frozen_gem_path end end @@ -81,8 +82,8 @@ module Rails end def load_rubygems - require 'rubygems' min_version = '1.3.1' + require 'rubygems' unless rubygems_version >= min_version $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) exit 1