Permalink
Browse files

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

Replace File.exists? with File.exist?
  • Loading branch information...
2 parents 5e5af5b + 7a372c8 commit 61bd71ef5ca3f13fde476b2db59980a01c8b3120 @carlosantoniodasilva carlosantoniodasilva committed Jan 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'

0 comments on commit 61bd71e

Please sign in to comment.