Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15794 from vishalzambre/patch-1

File.exists? is a deprecated name, use File.exist?
  • Loading branch information...
commit 6d800a909e24465ca6f3fa5206222fa7d78967f6 2 parents 6a05129 + fca3cc2
@guilleiguaran guilleiguaran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/file_update_checker.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.