From 454438091bd86431dacab8a7d50383b3525c35d3 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 15 Oct 2023 06:42:59 +0200 Subject: [PATCH] Use explicit `create!` call in mute rule creation use case --- lib/use_case/mute_rule/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/use_case/mute_rule/create.rb b/lib/use_case/mute_rule/create.rb index 68a587aa..eee45dd6 100644 --- a/lib/use_case/mute_rule/create.rb +++ b/lib/use_case/mute_rule/create.rb @@ -7,7 +7,7 @@ module UseCase option :phrase, type: Types::Coercible::String def call - rule = ::MuteRule.create( + rule = ::MuteRule.create!( user:, muted_phrase: phrase )