Skip to content

Commit fd920ed

Browse files
committed
Rails 5 updating
1 parent f9732b1 commit fd920ed

File tree

4 files changed

+256
-247
lines changed

4 files changed

+256
-247
lines changed

app/api/api_v2/named_params.rb

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ module NamedParams
88
requires :signature, type: String, desc: "The signature of your request payload, generated using your secret key."
99
end
1010

11+
1112
params :market do
12-
requires :market,
13-
type: String,
14-
values: -> { Market.pluck(:id) },
15-
desc: -> { APIv2::Entities::Market.documentation[:id] }
13+
begin
14+
requires :market,
15+
type: String,
16+
values: -> { Market.pluck(:id) },
17+
desc: -> { APIv2::Entities::Market.documentation[:id] }
18+
rescue => ex
19+
Rails.logger.error ex.message
20+
end
1621
end
1722

1823
params :order do

config/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defaults: &defaults
33
# sites hosts
44
# session expire seconds
55
# admin role account
6-
URL_HOST: ${domain_url}
6+
URL_HOST: localhost
77
URL_SCHEMA: http
88
SESSION_EXPIRE: "60"
99

config/currencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
coin: true
1919
quick_withdraw_max: 0
2020
family: BTC
21-
rpc: ${rpc_url}
21+
rpc: peatio:peatio@bitcoin:9333
2222
blockchain: https://blockchain.info/tx/#{txid}
2323
address_url: https://blockchain.info/address/#{address}
2424
assets:

0 commit comments

Comments
 (0)