diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-25 08:13:21 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-25 08:13:21 -0700 |
commit | b033a248146d53c65a1680cdeb76b2035e670dfd (patch) | |
tree | c1b1eff3f1547143574b1e2f064d619783e031a5 /activesupport | |
parent | 64affc9384e9e8845b0204b94c003265442bc3e2 (diff) | |
parent | 624b11861658478e9dcd75728f4f3e9d91e8c03d (diff) | |
download | rails-b033a248146d53c65a1680cdeb76b2035e670dfd.tar.gz rails-b033a248146d53c65a1680cdeb76b2035e670dfd.tar.bz2 rails-b033a248146d53c65a1680cdeb76b2035e670dfd.zip |
Merge pull request #2258 from thedarkone/no-file-stat
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.rb | 2 |
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 |