Skip to content

Commit

Permalink
Add keyword argument splat to wikimedia commons methods
Browse files Browse the repository at this point in the history
  • Loading branch information
delonnewman committed Apr 13, 2023
1 parent b1770d0 commit 8f1dad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/infoboxer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class << self # rubocop:disable Lint/EmptyClass -- that's for YARD!

WIKIMEDIA_COMMONS.each do |name, domain|
define_method name do |**options|
wiki("https://#{domain}/w/api.php", options)
wiki("https://#{domain}/w/api.php", **options)
end
end

Expand Down

0 comments on commit 8f1dad8

Please sign in to comment.