Commit 533f3100391ff58c5cb54c6a7134f8eb1bea54bf
1 parent
519edc98
Exists in
master
and in
29 other branches
Remove spaces
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
app/models/enterprise.rb
@@ -104,13 +104,9 @@ class Enterprise < Organization | @@ -104,13 +104,9 @@ class Enterprise < Organization | ||
104 | return if enabled | 104 | return if enabled |
105 | # must be set first for the following to work | 105 | # must be set first for the following to work |
106 | self.enabled = true | 106 | self.enabled = true |
107 | - | ||
108 | self.affiliate owner, Profile::Roles.all_roles(self.environment.id) if owner | 107 | self.affiliate owner, Profile::Roles.all_roles(self.environment.id) if owner |
109 | - | ||
110 | self.apply_template template if self.environment.replace_enterprise_template_when_enable | 108 | self.apply_template template if self.environment.replace_enterprise_template_when_enable |
111 | - | ||
112 | self.activation_task.update_attribute :status, Task::Status::FINISHED rescue nil | 109 | self.activation_task.update_attribute :status, Task::Status::FINISHED rescue nil |
113 | - | ||
114 | self.save_without_validation! | 110 | self.save_without_validation! |
115 | end | 111 | end |
116 | 112 |