Skip to content

Commit 1da201b

Browse files
committed
File.exist? instead of File.exists? in bin/setup
File.exists? is deprecated in Ruby 2.1+ https://github.com/ruby/ruby/blob/v2_1_2/file.c#L1413
1 parent b5d53f8 commit 1da201b

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/bin

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Dir.chdir APP_ROOT do
1212
system "bundle check || bundle install"
1313

1414
# puts "\n== Copying sample files =="
15-
# unless File.exists?("config/database.yml")
15+
# unless File.exist?("config/database.yml")
1616
# system "cp config/database.yml.sample config/database.yml"
1717
# end
1818

0 commit comments

Comments
 (0)