aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSharang Dashputre <sharang.d@gmail.com>2019-07-26 15:22:40 +0530
committerSharang Dashputre <sharang.d@gmail.com>2019-07-26 15:22:43 +0530
commitb00a183aa1ad76cdaaf5cc5a969b393c596069cf (patch)
treed81ce62aba60ed813600dd7e8e68410a6c239a35
parent41bc4c6207147a5eeafa323d763e66c06e61cacf (diff)
downloadrails-b00a183aa1ad76cdaaf5cc5a969b393c596069cf.tar.gz
rails-b00a183aa1ad76cdaaf5cc5a969b393c596069cf.tar.bz2
rails-b00a183aa1ad76cdaaf5cc5a969b393c596069cf.zip
Add a default value for arg `format` in `ActionView::Digestor.digest()`
-rw-r--r--actionview/lib/action_view/digestor.rb2
1 files changed, 1 insertions, 1 deletions
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
# * <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