diff options
author | Vishal Zambre <v.zambre@gmail.com> | 2014-06-18 10:51:27 +0530 |
---|---|---|
committer | Vishal Zambre <v.zambre@gmail.com> | 2014-06-18 10:51:27 +0530 |
commit | fca3cc23fa02d7ed0117260e6209572ef001cc04 (patch) | |
tree | c4c341429991496cfc31c59914d850618180bc96 /activesupport | |
parent | 6a051299f98ee43864326c6c0a4f7d169d22b3f8 (diff) | |
download | rails-fca3cc23fa02d7ed0117260e6209572ef001cc04.tar.gz rails-fca3cc23fa02d7ed0117260e6209572ef001cc04.tar.bz2 rails-fca3cc23fa02d7ed0117260e6209572ef001cc04.zip |
File.exists? is a deprecated name, use File.exist?
File.exists? is a deprecated name, use File.exist?
Diffstat (limited to 'activesupport')
-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 |