From 80c0ae7de867071ea6abee865364092783ca3d0a Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Thu, 14 Mar 2019 14:27:35 -0700 Subject: Remove updated_at from Templates --- actionview/lib/action_view/template/resolver.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'actionview/lib/action_view/template') 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. -- cgit v1.2.3