diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb
index 7517410ea5..cdf436ccae 100644
--- a/actionview/lib/action_view/digestor.rb
+++ b/actionview/lib/action_view/digestor.rb
@@ -13,7 +13,7 @@ module ActionView
# * format - Template format
# * finder - An instance of ActionView::LookupContext
# * dependencies - 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