Skip to content

Commit 5a314bd

Browse files
authored
Merge pull request #484 from aubinlrx/tweak/deprecation_warning_ruby_27
Fix kwargs usage for Ruby 2.7
2 parents 7311233 + b3e0ace commit 5a314bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder/jbuilder_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _fragment_name_with_digest(key, options)
164164
if @context.respond_to?(:cache_fragment_name)
165165
# Current compatibility, fragment_name_with_digest is private again and cache_fragment_name
166166
# should be used instead.
167-
@context.cache_fragment_name(key, options)
167+
@context.cache_fragment_name(key, **options)
168168
elsif @context.respond_to?(:fragment_name_with_digest)
169169
# Backwards compatibility for period of time when fragment_name_with_digest was made public.
170170
@context.fragment_name_with_digest(key)

0 commit comments

Comments
 (0)