aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:22:07 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-06 09:22:07 +0000
commit8dfe5b78fa4525d2d3c6167e9aea29d7756b5eb7 (patch)
treee2285428760d0669dbe4867ad228051fad3188db /railties/environments
parente17df19b86a2ad0ed8c5657ef046c3e82cf6d63b (diff)
downloadrails-8dfe5b78fa4525d2d3c6167e9aea29d7756b5eb7.tar.gz
rails-8dfe5b78fa4525d2d3c6167e9aea29d7756b5eb7.tar.bz2
rails-8dfe5b78fa4525d2d3c6167e9aea29d7756b5eb7.zip
Windows: include MinGW in RUBY_PLATFORM check. Closes #2982.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r--railties/environments/boot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
index 1e2a641823..b7af0c35c7 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -3,7 +3,7 @@
unless defined?(RAILS_ROOT)
root_path = File.join(File.dirname(__FILE__), '..')
- unless RUBY_PLATFORM =~ /mswin32/
+ unless RUBY_PLATFORM =~ /(:?mswin|mingw)/
require 'pathname'
root_path = Pathname.new(root_path).cleanpath(true).to_s
end
@@ -42,4 +42,4 @@ unless defined?(Rails::Initializer)
end
Rails::Initializer.run(:set_load_path)
-end \ No newline at end of file
+end