]> source.dussan.org Git - redmine.git/commitdiff
Forces Redmine to use rails 2.0.2 gem when vendor/rails is not present.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Apr 2008 16:34:42 +0000 (16:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Apr 2008 16:34:42 +0000 (16:34 +0000)
If you don't want to upgrade rails gem, freeze Redmine by running the following command in your Redmine directory:

  rake rails:freeze:edge TAG=rel_2-0-2

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1366 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/environment.rb

index 2d581168b1d4739c5760aed64922d322f89560c2..7878eca47f8812483d8d67f46552eaaf1a37a217 100644 (file)
@@ -4,6 +4,9 @@
 # you don't control web/app server and can't set it the proper way
 # ENV['RAILS_ENV'] ||= 'production'
 
+# Specifies gem version of Rails to use when vendor/rails is not present
+RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
+
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')