diff options
author | Teo Ljungberg <teo.ljungberg@gmail.com> | 2014-01-27 22:21:28 +0100 |
---|---|---|
committer | Teo Ljungberg <teo.ljungberg@gmail.com> | 2014-01-27 22:21:28 +0100 |
commit | 7a372c84290d8e911ca594af90e79dbec4993ead (patch) | |
tree | 826d516e64627c91d85b5bbed83cb2439f1688e4 /railties | |
parent | b5944928700cfc13ed8f615acb54116a3039f345 (diff) | |
download | rails-7a372c84290d8e911ca594af90e79dbec4993ead.tar.gz rails-7a372c84290d8e911ca594af90e79dbec4993ead.tar.bz2 rails-7a372c84290d8e911ca594af90e79dbec4993ead.zip |
Replace File.exists? with File.exist?
To quell warnings on ruby 2.1
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt b/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt index 3ea6c6d7d4..c3314d7e68 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt @@ -5,7 +5,7 @@ ENGINE_PATH = File.expand_path('../../lib/<%= name -%>/engine', __FILE__) # 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']) require 'rails/all' require 'rails/engine/commands' |