From f0acdba69d3d516b1c75ac293b4cfddfa8ba6980 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 13 May 2014 19:24:44 +0000 Subject: [PATCH] Fix save without validation new api call --- app/models/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index f37d7b9..f9e0b32 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -109,7 +109,7 @@ class Enterprise < Organization self.affiliate owner, Profile::Roles.all_roles(self.environment.id) if owner self.apply_template template if self.environment.replace_enterprise_template_when_enable self.activation_task.update_attribute :status, Task::Status::FINISHED rescue nil - self.save_without_validation! + self.save(:validate => false) end def question -- libgit2 0.21.2