diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-02-15 07:03:20 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2012-02-15 07:03:20 +0100 |
commit | 80ca70207e6b702cb8760561a65e3652acfe3067 (patch) | |
tree | 19fa69f11bd283162bce732de5b49e9d8cafff44 /config | |
parent | efb19f49b7e469915df8fc11b9f799a658e21ce0 (diff) | |
download | ecs2-80ca70207e6b702cb8760561a65e3652acfe3067.tar.gz ecs2-80ca70207e6b702cb8760561a65e3652acfe3067.zip |
Changed to rails 2.4.14
Diffstat (limited to 'config')
-rw-r--r-- | config/boot.rb | 40 | ||||
-rw-r--r-- | config/environment.rb | 2 |
2 files changed, 7 insertions, 35 deletions
diff --git a/config/boot.rb b/config/boot.rb index 0aa4ec3..6686664 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,21 +1,3 @@ -# Copyright (C) 2007, 2008, 2009, 2010 Heiko Bernloehr (FreeIT.de). -# -# This file is part of ECS. -# -# ECS is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# ECS is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public -# License along with ECS. If not, see <http://www.gnu.org/licenses/>. - - # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb @@ -80,8 +62,12 @@ module Rails gem 'rails' end 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.) - exit 1 + if load_error.message =~ /Could not find RubyGem rails/ + 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 class << self @@ -125,18 +111,4 @@ module Rails end # All that for this: -class Rails::Boot - def run - load_initializer - - Rails::Initializer.class_eval do - def load_gems - @bundler_loaded ||= Bundler.require :default, Rails.env - end - end - - Rails::Initializer.run(:set_load_path) - end -end - Rails.boot! diff --git a/config/environment.rb b/config/environment.rb index 5736a17..984cf22 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -19,7 +19,7 @@ # Be sure to restart your server when you modify this file # Specifies gem version of Rails to use when vendor/rails is not present -RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION +RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') |