Commit 75a14cfdc2bd5f064573096e2d7cb1f4ded66d93
1 parent
5a791089
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
HOTFIX: undo improve register performance
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/models/profile.rb
... | ... | @@ -498,6 +498,9 @@ class Profile < ActiveRecord::Base |
498 | 498 | self.custom_footer = template[:custom_footer] |
499 | 499 | self.custom_header = template[:custom_header] |
500 | 500 | self.public_profile = template.public_profile |
501 | + | |
502 | + # flush | |
503 | + self.save(:validate => false) | |
501 | 504 | end |
502 | 505 | |
503 | 506 | def apply_type_specific_template(template) | ... | ... |