Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13857 from teoljungberg/replace-file-exists-eh

Replace File.exists? with File.exist?
  • Loading branch information...
commit 61bd71ef5ca3f13fde476b2db59980a01c8b3120 2 parents 5e5af5b + 7a372c8
@carlosantoniodasilva carlosantoniodasilva authored
View
2  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'
Please sign in to comment.
Something went wrong with that request. Please try again.