From b00a183aa1ad76cdaaf5cc5a969b393c596069cf Mon Sep 17 00:00:00 2001 From: Sharang Dashputre Date: Fri, 26 Jul 2019 15:22:40 +0530 Subject: [PATCH] Add a default value for arg `format` in `ActionView::Digestor.digest()` --- actionview/lib/action_view/digestor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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