From 75a14cfdc2bd5f064573096e2d7cb1f4ded66d93 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 13 Jul 2015 22:23:25 -0300 Subject: [PATCH] HOTFIX: undo improve register performance --- app/models/profile.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index f7aea0a..e6a5575 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -498,6 +498,9 @@ class Profile < ActiveRecord::Base self.custom_footer = template[:custom_footer] self.custom_header = template[:custom_header] self.public_profile = template.public_profile + + # flush + self.save(:validate => false) end def apply_type_specific_template(template) -- libgit2 0.21.2