diff --git a/app/models/project.rb b/app/models/project.rb index bfddd54c6..542c4cbc6 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -42,7 +42,9 @@ class Project < ActiveRecord::Base after_rollback lambda { destroy_git_repo rescue true if new_record? } def project_versions - tags.select { |tag| tag.name =~ /^v\./ } + res = tags.select { |tag| tag.name =~ /^v\./ } + return res if res and res.size > 0 + tags end def collected_project_versions