diff --git a/apps/dashboard/app/models/project.rb b/apps/dashboard/app/models/project.rb index 6e644a5e8e..9aaea27317 100644 --- a/apps/dashboard/app/models/project.rb +++ b/apps/dashboard/app/models/project.rb @@ -212,8 +212,8 @@ def save_new_scripts errors.add(:save, script.errors.full_messages) unless saved_successfully saved_successfully - end.none? do |saved_successfully| - saved_successfully == false + end.all? do |saved_successfully| + saved_successfully == true end end