Probably fixed tags.

This commit is contained in:
George Vinogradov 2011-11-01 19:46:05 +04:00
parent b5d0d3c2c2
commit 915e0ec0c7
1 changed files with 3 additions and 1 deletions

View File

@ -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