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:
parent
41bc4c6207
commit
b00a183aa1
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module ActionView
|
||||||
# * <tt>format</tt> - Template format
|
# * <tt>format</tt> - Template format
|
||||||
# * <tt>finder</tt> - An instance of <tt>ActionView::LookupContext</tt>
|
# * <tt>finder</tt> - An instance of <tt>ActionView::LookupContext</tt>
|
||||||
# * <tt>dependencies</tt> - An array of dependent views
|
# * <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?
|
if dependencies.nil? || dependencies.empty?
|
||||||
cache_key = "#{name}.#{format}"
|
cache_key = "#{name}.#{format}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue