aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2011-07-25 17:01:30 +0200
committerthedarkone <thedarkone2@gmail.com>2011-07-25 17:02:28 +0200
commit624b11861658478e9dcd75728f4f3e9d91e8c03d (patch)
treed140e28eaeefd1d780763e5c58abb51d29ac0c32 /activesupport
parent02691d3516e68b2de5545ec7a495024a377f89fc (diff)
downloadrails-624b11861658478e9dcd75728f4f3e9d91e8c03d.tar.gz
rails-624b11861658478e9dcd75728f4f3e9d91e8c03d.tar.bz2
rails-624b11861658478e9dcd75728f4f3e9d91e8c03d.zip
Use shorter class-level File methods instead of going through File.stat.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/file_update_checker.rb2
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 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