aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/initialization.md
diff options
context:
space:
mode:
authorRashmi Yadav <rays.rashmi@gmail.com>2013-11-01 18:07:27 +0100
committerRashmi Yadav <rays.rashmi@gmail.com>2013-11-01 18:07:27 +0100
commit49062c12edc4b5397ea3bc6680eb6a13bdec2164 (patch)
tree5f9f2a9daef5dc1c1271c064d5b2984652b9ab3e /guides/source/initialization.md
parent1478ebf66c158bd214ed807622ec941cad4e3dee (diff)
downloadrails-49062c12edc4b5397ea3bc6680eb6a13bdec2164.tar.gz
rails-49062c12edc4b5397ea3bc6680eb6a13bdec2164.tar.bz2
rails-49062c12edc4b5397ea3bc6680eb6a13bdec2164.zip
exists? is deprecated in ruby trunk [ci skip]
see here 4d4ff531b8807ee88a3fc46875c7e76f613956fb
Diffstat (limited to 'guides/source/initialization.md')
-rw-r--r--guides/source/initialization.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/initialization.md b/guides/source/initialization.md
index fe6b1ad906..7e9cb5a47d 100644
--- a/guides/source/initialization.md
+++ b/guides/source/initialization.md
@@ -54,7 +54,7 @@ The `APP_PATH` constant will be used later in `rails/commands`. The `config/boot
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
+require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
```
In a standard Rails application, there's a `Gemfile` which declares all
@@ -121,7 +121,7 @@ when 'server'
# Change to the application's path if there is no config.ru file in current directory.
# This allows us to run `rails server` from other directories, but still get
# the main config.ru and properly set the tmp directory.
- Dir.chdir(File.expand_path('../../', APP_PATH)) unless File.exists?(File.expand_path("config.ru"))
+ Dir.chdir(File.expand_path('../../', APP_PATH)) unless File.exist?(File.expand_path("config.ru"))
require 'rails/commands/server'
Rails::Server.new.tap do |server|