From eef32b9b792bbd311f194ea372550756a491d02e Mon Sep 17 00:00:00 2001 From: elviabth Date: Wed, 10 Apr 2024 13:05:04 +0200 Subject: [PATCH] refactor call command method --- .../decidim/anonymous_codes/admin/update_code_group.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands/decidim/anonymous_codes/admin/update_code_group.rb b/app/commands/decidim/anonymous_codes/admin/update_code_group.rb index 4fc1068..15b79db 100644 --- a/app/commands/decidim/anonymous_codes/admin/update_code_group.rb +++ b/app/commands/decidim/anonymous_codes/admin/update_code_group.rb @@ -10,13 +10,13 @@ def initialize(form, code_group) end def call - return broadcast(:invalid) if @form.invalid? + return broadcast(:invalid) if form.invalid? transaction do update_code_group end - broadcast(:ok, @code_group) + broadcast(:ok, code_group) end private