FIX: Support Ruby 3 keyword arguments

This commit is contained in:
Yasuo Honda
2021-09-27 21:45:05 +09:00
committed by Robin Ward
parent 5569723321
commit dbbfad7ed0
12 changed files with 24 additions and 24 deletions

View File

@ -137,7 +137,7 @@ def rebake_post(post, opts = {})
if !opts[:priority]
opts[:priority] = :ultra_low
end
post.rebake!(opts)
post.rebake!(**opts)
rescue => e
puts "", "Failed to rebake (topic_id: #{post.topic_id}, post_id: #{post.id})", e, e.backtrace.join("\n")
end