mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 08:41:11 +08:00
8 lines
232 B
Ruby
8 lines
232 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:solved_web_hook, from: :web_hook) do
|
|
after_build do |web_hook|
|
|
web_hook.web_hook_event_types =
|
|
WebHookEventType.where(name: %w[accepted_solution unaccepted_solution])
|
|
end
|
|
end
|