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

Add a default value for arg format in ActionView::Digestor.digest()

This commit is contained in:
Sharang Dashputre 2019-07-26 15:22:40 +05:30
parent 41bc4c6207
commit b00a183aa1

View file

@ -13,7 +13,7 @@ module ActionView
# * <tt>format</tt> - Template format
# * <tt>finder</tt> - An instance of <tt>ActionView::LookupContext</tt>
# * <tt>dependencies</tt> - An array of dependent views
def digest(name:, format:, finder:, dependencies: nil)
def digest(name:, format: nil, finder:, dependencies: nil)
if dependencies.nil? || dependencies.empty?
cache_key = "#{name}.#{format}"
else