1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

We dont need to include the name and the format in the digest -- source is authoritative enough

This commit is contained in:
David Heinemeier Hansson 2012-09-04 17:29:00 -05:00
parent 27acd1e0d2
commit a497bed113

View file

@ -35,7 +35,7 @@ module ActionView
end
def digest
Digest::MD5.hexdigest("#{name}.#{format}-#{source}-#{dependency_digest}").tap do |digest|
Digest::MD5.hexdigest("#{source}-#{dependency_digest}").tap do |digest|
logger.try :info, "Cache digest for #{name}.#{format}: #{digest}"
end
rescue ActionView::MissingTemplate