From 32f7edcd99408926f6ce21c5cd286bc5fcdf0f72 Mon Sep 17 00:00:00 2001 From: bsag Date: Tue, 15 Feb 2005 21:34:21 +0000 Subject: [PATCH] Changed the require_gem lines in environment.rb to guard against the routing-based changes in the next version of Rails. This should just be a temporary measure, but currently makes Tracks use v. 1.6.0 of ActiveRecord, 1.4.0 of Actionpack, 0.6.1 of ActionMailer, and 0.9.5 of Rails. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@25 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/config/environment.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tracks/config/environment.rb b/tracks/config/environment.rb index 3245cd1d..b79975f4 100644 --- a/tracks/config/environment.rb +++ b/tracks/config/environment.rb @@ -24,11 +24,13 @@ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(di # Require Rails gems. +# Restricted the usuable versions of Rails gems to guard against the new routing +# features in Rails require 'rubygems' - require_gem 'activerecord' - require_gem 'actionpack' - require_gem 'actionmailer' - require_gem 'rails' + require_gem 'activerecord', '<= 1.6.0' + require_gem 'actionpack', '<= 1.4.0' + require_gem 'actionmailer', '<= 0.6.1' + require_gem 'rails', '<= 0.9.5' # Environment-specific configuration.