Skip to content

Commit 352b3a9

Browse files
authored
fix(profile): frozen error on profile/user delete
1 parent b0b3380 commit 352b3a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/profile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Profile < ApplicationRecord
99
validates :website, url: true, http_url: { allow_inaccessible: true }, allow_blank: true
1010
validates :orcid, orcid: true, allow_blank: true
1111
after_validation :check_public
12-
after_commit :reindex_trainer
12+
after_commit :reindex_trainer, on: %i[create update]
1313
clean_array_fields(:expertise_academic, :expertise_technical, :fields,
1414
:interest, :activity, :language, :social_media)
1515
update_suggestions(:expertise_technical, :interest)

0 commit comments

Comments
 (0)