add base url for cloud mode

This commit is contained in:
phyusin
2018-05-22 14:15:31 +06:30
parent ead01f3d97
commit 70b7ec784f
4 changed files with 11 additions and 4 deletions

View File

@@ -53,7 +53,11 @@ json.id item.id
json.code item.item_code
json.name item.name
json.alt_name item.alt_name
json.image item.image_path.url
if !request_url.nil? && request_url != ''
json.image request_url + item.image_path.url.to_s
else
json.image item.image_path.url
end
json.description item.description
json.information item.information
json.type item.type