aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/environment.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-04-01 06:29:32 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-04-01 06:29:32 +0000
commitd08f838c0e4d626a1b78c7799e0cad878ce4943c (patch)
tree4912c4fcf6ee7da1b0c1635ae16e344985a95d48 /railties/environments/environment.rb
parent237cc945bb82c3428b85646fe1688fe61d4cc535 (diff)
downloadrails-d08f838c0e4d626a1b78c7799e0cad878ce4943c.tar.gz
rails-d08f838c0e4d626a1b78c7799e0cad878ce4943c.tar.bz2
rails-d08f838c0e4d626a1b78c7799e0cad878ce4943c.zip
Added -f/--freeze option to rails command for freezing the application to the Rails version it was generated with [DHH] Fixed rake rails:freeze:gems (closes #4518) [benji@silverinsanity.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/environment.rb')
-rw-r--r--railties/environments/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 5fbceb69dc..839da1c53d 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -5,7 +5,7 @@
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>'
+<%= '# ' if freeze %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>'
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')