diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-06-18 00:33:00 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-06-18 00:33:00 -0500 |
commit | 6d800a909e24465ca6f3fa5206222fa7d78967f6 (patch) | |
tree | c4c341429991496cfc31c59914d850618180bc96 /activesupport/lib | |
parent | 6a051299f98ee43864326c6c0a4f7d169d22b3f8 (diff) | |
parent | fca3cc23fa02d7ed0117260e6209572ef001cc04 (diff) | |
download | rails-6d800a909e24465ca6f3fa5206222fa7d78967f6.tar.gz rails-6d800a909e24465ca6f3fa5206222fa7d78967f6.tar.bz2 rails-6d800a909e24465ca6f3fa5206222fa7d78967f6.zip |
Merge pull request #15794 from vishalzambre/patch-1
File.exists? is a deprecated name, use File.exist?
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/file_update_checker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb index a4ad2da137..2e0e873fda 100644 --- a/activesupport/lib/active_support/file_update_checker.rb +++ b/activesupport/lib/active_support/file_update_checker.rb @@ -95,7 +95,7 @@ module ActiveSupport def updated_at #:nodoc: @updated_at || begin all = [] - all.concat @files.select { |f| File.exists?(f) } + all.concat @files.select { |f| File.exist?(f) } all.concat Dir[@glob] if @glob all.map { |path| File.mtime(path) }.max || Time.at(0) end |