From 624b11861658478e9dcd75728f4f3e9d91e8c03d Mon Sep 17 00:00:00 2001 From: thedarkone Date: Mon, 25 Jul 2011 17:01:30 +0200 Subject: Use shorter class-level File methods instead of going through File.stat. --- activesupport/lib/active_support/file_update_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/file_update_checker.rb') diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb index a97e9d7daf..f76ddff038 100644 --- a/activesupport/lib/active_support/file_update_checker.rb +++ b/activesupport/lib/active_support/file_update_checker.rb @@ -22,7 +22,7 @@ module ActiveSupport end def updated_at - paths.map { |path| File.stat(path).mtime }.max + paths.map { |path| File.mtime(path) }.max end def execute_if_updated -- cgit v1.2.3