diff options
author | thedarkone <thedarkone2@gmail.com> | 2011-07-25 17:01:30 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2011-07-25 17:02:28 +0200 |
commit | 624b11861658478e9dcd75728f4f3e9d91e8c03d (patch) | |
tree | d140e28eaeefd1d780763e5c58abb51d29ac0c32 /actionpack/lib/action_view | |
parent | 02691d3516e68b2de5545ec7a495024a377f89fc (diff) | |
download | rails-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 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/template/resolver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb index 2b9427ace5..5f7fe81bd5 100644 --- a/actionpack/lib/action_view/template/resolver.rb +++ b/actionpack/lib/action_view/template/resolver.rb @@ -161,7 +161,7 @@ module ActionView # Returns the file mtime from the filesystem. def mtime(p) - File.stat(p).mtime + File.mtime(p) end # Extract handler and formats from path. If a format cannot be a found neither |