Skip to content
Snippets Groups Projects
Unverified Commit 8a9acbe6 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix being able to appeal a strike unlimited times (#18529)

Peculiarity of the `has_one` association is that the convenience
creation method deletes the previous association even if the new
one is invalid
parent c4d2c39a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,8 @@ class AppealService < BaseService
private
def create_appeal!
@appeal = @strike.create_appeal!(
@appeal = Appeal.create!(
strike: @strike,
text: @text,
account: @strike.target_account
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment