aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-17 18:54:55 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-17 18:54:55 +0000
commitab9e4c0eaacba34c9f1d16cf34c82e0e906edad5 (patch)
tree968f6acc717f524c8ff9bae281663016452da07d /railties/environments
parent0f6c86ff40d0b0efe672ae76f2b5b536feaf7255 (diff)
downloadrails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.tar.gz
rails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.tar.bz2
rails-ab9e4c0eaacba34c9f1d16cf34c82e0e906edad5.zip
Ruby 1.9 compatibility. References #1689.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r--railties/environments/boot.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb
index 5697cc1bc3..fc8372309b 100644
--- a/railties/environments/boot.rb
+++ b/railties/environments/boot.rb
@@ -24,9 +24,8 @@ module Rails
File.exist?("#{RAILS_ROOT}/vendor/rails")
end
- # FIXME : Ruby 1.9
def preinitialize
- load(preinitializer_path) if File.exists?(preinitializer_path)
+ load(preinitializer_path) if File.exist?(preinitializer_path)
end
def preinitializer_path