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
1 changed files with 1 additions and 1 deletions

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