diff options
author | David Jones <unixmonkey1@gmail.com> | 2014-06-02 15:31:09 -0400 |
---|---|---|
committer | David Jones <unixmonkey1@gmail.com> | 2014-06-02 15:31:09 -0400 |
commit | 1da201b4dbbe5226813e0ef04f929d7357935c40 (patch) | |
tree | ed44931bd0927cf290c141924dd95afc12e0da8b /railties/lib/rails | |
parent | b5d53f864826c7ce88af0d8b9a9ff45f95956f6b (diff) | |
download | rails-1da201b4dbbe5226813e0ef04f929d7357935c40.tar.gz rails-1da201b4dbbe5226813e0ef04f929d7357935c40.tar.bz2 rails-1da201b4dbbe5226813e0ef04f929d7357935c40.zip |
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
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/setup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup b/railties/lib/rails/generators/rails/app/templates/bin/setup index 5fcc1a07d6..0e22b3fa5c 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup +++ b/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 |