Skip to content

Commit

Permalink
Merge pull request #36772 from sharang-d/default-for-digest
Browse files Browse the repository at this point in the history
Add a default value for arg `format` in `ActionView::Digestor.digest()`
  • Loading branch information
rafaelfranca committed Jul 26, 2019
1 parent 7295d8c commit 2dab4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/digestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self
# * <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
Expand Down

0 comments on commit 2dab4f0

Please sign in to comment.