menu alt name

This commit is contained in:
Nweni
2017-07-02 14:36:57 +06:30
parent 58f2ff28e5
commit f06e526ea3
5 changed files with 165 additions and 158 deletions

View File

@@ -331,15 +331,15 @@ class SalePayment < ApplicationRecord
:headers => {
'Content-Type' => 'application/json',
'Accept' => 'application/json'
}, :timeout => 10)
}, :timeout => 100)
rescue Net::OpenTimeout
response = { status: false }
response = { status: false , message: "Server Time out"}
rescue OpenURI::HTTPError
response = { status: false}
response = { status: false, message: "Can't connect server"}
rescue SocketError
response = { status: false}
response = { status: false, message: "Can't connect server"}
end
return response
# puts response.to_json