#345: fixed: undefined method [] for nil:NilClass

This commit is contained in:
Vokhmin Alexey V 2014-03-27 00:12:31 +04:00
parent a15353e460
commit ca834696b8
1 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,9 @@ json.product_build_list do |json|
json.created_at @product_build_list.created_at.to_i
json.updated_at @product_build_list.updated_at.to_i
json.results (@product_build_list.results || []) do |json_logs, result|
json_logs.file_name result['file_name']
json_logs.size result['size']
json_logs.url "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{result['sha1']}"
json.results (@product_build_list.results || []) do |result|
json.file_name result['file_name']
json.size result['size']
json.url "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{result['sha1']}"
end
end