Permalink
Browse files

Merge pull request #15794 from vishalzambre/patch-1

File.exists? is a deprecated name, use File.exist?
  • Loading branch information...
2 parents 6a05129 + fca3cc2 commit 6d800a909e24465ca6f3fa5206222fa7d78967f6 @guilleiguaran guilleiguaran committed Jun 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/file_update_checker.rb
@@ -95,7 +95,7 @@ def execute_if_updated
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

0 comments on commit 6d800a9

Please sign in to comment.