From fca3cc23fa02d7ed0117260e6209572ef001cc04 Mon Sep 17 00:00:00 2001 From: Vishal Zambre Date: Wed, 18 Jun 2014 10:51:27 +0530 Subject: File.exists? is a deprecated name, use File.exist? File.exists? is a deprecated name, use File.exist? --- activesupport/lib/active_support/file_update_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3