diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-14 14:27:35 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-15 09:30:44 -0700 |
commit | 80c0ae7de867071ea6abee865364092783ca3d0a (patch) | |
tree | fd280d9aefedebaeb5ffbef6da4e055925a188f7 /actionview/lib/action_view/template | |
parent | d445ceb9b51ce87a306f331c643808312bd740e5 (diff) | |
download | rails-80c0ae7de867071ea6abee865364092783ca3d0a.tar.gz rails-80c0ae7de867071ea6abee865364092783ca3d0a.tar.bz2 rails-80c0ae7de867071ea6abee865364092783ca3d0a.zip |
Remove updated_at from Templates
Diffstat (limited to 'actionview/lib/action_view/template')
-rw-r--r-- | actionview/lib/action_view/template/resolver.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb index eeb7cce61e..07c44307ff 100644 --- a/actionview/lib/action_view/template/resolver.rb +++ b/actionview/lib/action_view/template/resolver.rb @@ -190,8 +190,7 @@ module ActionView virtual_path: path.virtual, format: format, variant: variant, - locals: locals, - updated_at: mtime(template) + locals: locals ) end end @@ -244,11 +243,6 @@ module ActionView entry.gsub(/[*?{}\[\]]/, '\\\\\\&') end - # Returns the file mtime from the filesystem. - def mtime(p) - File.mtime(p) - end - # Extract handler, formats and variant from path. If a format cannot be found neither # from the path, or the handler, we should return the array of formats given # to the resolver. |