We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68ae01f + 352b3a9 commit 2ad373aCopy full SHA for 2ad373a
1 file changed
app/models/profile.rb
@@ -9,7 +9,7 @@ class Profile < ApplicationRecord
9
validates :website, url: true, http_url: { allow_inaccessible: true }, allow_blank: true
10
validates :orcid, orcid: true, allow_blank: true
11
after_validation :check_public
12
- after_commit :reindex_trainer
+ after_commit :reindex_trainer, on: %i[create update]
13
clean_array_fields(:expertise_academic, :expertise_technical, :fields,
14
:interest, :activity, :language, :social_media)
15
update_suggestions(:expertise_technical, :interest)
0 commit comments