From 6b24970c549112ce1cb20a5dee8b15e8c79f0a4a Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 31 Jan 2023 02:51:01 -0800 Subject: [PATCH] Edit key should create before create, not save --- app/models/party.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/party.rb b/app/models/party.rb index a988c27..fda7ef1 100644 --- a/app/models/party.rb +++ b/app/models/party.rb @@ -62,7 +62,7 @@ class Party < ApplicationRecord has_many :favorites before_create :set_shortcode - before_save :set_edit_key + before_create :set_edit_key ##### Amoeba configuration amoeba do