Commit f0acdba69d3d516b1c75ac293b4cfddfa8ba6980
1 parent
484a806c
Exists in
master
and in
29 other branches
Fix save without validation new api call
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/enterprise.rb
@@ -109,7 +109,7 @@ class Enterprise < Organization | @@ -109,7 +109,7 @@ class Enterprise < Organization | ||
109 | self.affiliate owner, Profile::Roles.all_roles(self.environment.id) if owner | 109 | self.affiliate owner, Profile::Roles.all_roles(self.environment.id) if owner |
110 | self.apply_template template if self.environment.replace_enterprise_template_when_enable | 110 | self.apply_template template if self.environment.replace_enterprise_template_when_enable |
111 | self.activation_task.update_attribute :status, Task::Status::FINISHED rescue nil | 111 | self.activation_task.update_attribute :status, Task::Status::FINISHED rescue nil |
112 | - self.save_without_validation! | 112 | + self.save(:validate => false) |
113 | end | 113 | end |
114 | 114 | ||
115 | def question | 115 | def question |