mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #36772 from sharang-d/default-for-digest
Add a default value for arg `format` in `ActionView::Digestor.digest()`
This commit is contained in:
commit
a40b328b01
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue