Skip to content

Commit

Permalink
Fix kwargs usage for Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
aubinlrx committed Mar 26, 2020
1 parent 7311233 commit b3e0ace
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 b3e0ace

Please sign in to comment.