[refs #838] remove old string

This commit is contained in:
Alexander Machehin 2013-01-22 20:46:45 +06:00
parent d0d43b0090
commit 9d3bcf2c74
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module Modules
included do
def destroy
files, url = [], "#{APP_CONFIG['file_store_url']}/api/v1/file_stores"
files = []
self.results.each {|r| files << r['sha1'] if r['sha1'].present?}
if self.respond_to? :packages
self.packages.each {|pk| files << pk.sha1 if pk.sha1.present?}