Skip to content

Commit

Permalink
Avoid passing kwargs as the last argument
Browse files Browse the repository at this point in the history
This is deprecated and without adding the **, a warning is emitted
  • Loading branch information
jcoyne authored and cbeer committed Jul 7, 2020
1 parent 4f9ca5a commit f70bcbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/blacklight/icon_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Blacklight::IconHelperBehavior
# @return [String]
def blacklight_icon(icon_name, options = {})
Rails.cache.fetch([:blacklight_icons, icon_name, options]) do
icon = Blacklight::Icon.new(icon_name, options)
icon = Blacklight::Icon.new(icon_name, **options)
content_tag(:span, icon.svg.html_safe, icon.options)
end
end
Expand Down

0 comments on commit f70bcbb

Please sign in to comment.