Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 1da201b4dbbe5226813e0ef04f929d7357935c40 1 parent b5d53f8
@unixmonkey unixmonkey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/rails/app/templates/bin/setup
View
2  railties/lib/rails/generators/rails/app/templates/bin/setup
@@ -12,7 +12,7 @@ Dir.chdir APP_ROOT do
system "bundle check || bundle install"
# puts "\n== Copying sample files =="
- # unless File.exists?("config/database.yml")
+ # unless File.exist?("config/database.yml")
# system "cp config/database.yml.sample config/database.yml"
# end
Please sign in to comment.
Something went wrong with that request. Please try again.