config/boot.rb
File.exists?
is deprecated in favor of File.exist?
. Open
Open
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
- Read upRead up
- Exclude checks
This cop checks for uses of the deprecated class method usages.
Example:
# bad
File.exists?(some_path)
Example:
# good
File.exist?(some_path)