diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-27 16:59:32 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-27 16:59:32 -0800 |
commit | 61bd71ef5ca3f13fde476b2db59980a01c8b3120 (patch) | |
tree | 8597d6abae640f721c7f562f686ce4b8f73f18ef | |
parent | 5e5af5b67ac9de64035351e5da5cb3ddb779813b (diff) | |
parent | 7a372c84290d8e911ca594af90e79dbec4993ead (diff) | |
download | rails-61bd71ef5ca3f13fde476b2db59980a01c8b3120.tar.gz rails-61bd71ef5ca3f13fde476b2db59980a01c8b3120.tar.bz2 rails-61bd71ef5ca3f13fde476b2db59980a01c8b3120.zip |
Merge pull request #13857 from teoljungberg/replace-file-exists-eh
Replace File.exists? with File.exist?
-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' |