Skip to content

Commit

Permalink
Merge pull request #484 from aubinlrx/tweak/deprecation_warning_ruby_27
Browse files Browse the repository at this point in the history
Fix kwargs usage for Ruby 2.7
  • Loading branch information
kaspth authored Mar 28, 2020
2 parents 7311233 + b3e0ace commit 5a314bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbuilder/jbuilder_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _fragment_name_with_digest(key, options)
if @context.respond_to?(:cache_fragment_name)
# Current compatibility, fragment_name_with_digest is private again and cache_fragment_name
# should be used instead.
@context.cache_fragment_name(key, options)
@context.cache_fragment_name(key, **options)
elsif @context.respond_to?(:fragment_name_with_digest)
# Backwards compatibility for period of time when fragment_name_with_digest was made public.
@context.fragment_name_with_digest(key)
Expand Down

0 comments on commit 5a314bd

Please sign in to comment.