stellar_base-rails 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15b69658233c066ee56074dd0bcf6ceed2abb687d873322e7d732f36bfb9d96c
4
- data.tar.gz: 29e95f9804ccd034b6a9d210792ad19800936fbfddc9ae7c0588dd62bce0231d
3
+ metadata.gz: cb6ead7f2864989a152ec231b9f320433c14e940371fe949eb496b5f23a29aba
4
+ data.tar.gz: e7690ffa217717e9f2f9dd2c874cca7f9b2b806e6cba1091184604147883364f
5
5
  SHA512:
6
- metadata.gz: 9340c436c18b047df93e5a6ca27321c4fe586ed0c60f449e3d55a2042cfd8ac9f19411d7fdb2e6954c4767d64dbd8c22f2c436f0475daa0d1513bcaf27018f57
7
- data.tar.gz: 123e430f1e9f8fc2a938bcd928e09a34174f3325c7df4a9649d48de58e255bed5a4e3b2961118485ed220c08a6368761c3bddbcaab35cd3b612769080f991a0c
6
+ metadata.gz: 9b66865fe56899570bd53211966355517b36bec6f90bd807494f8cd0db94b5969957eca420e33b03ebd141e20b0215651d4605f1ff9c0a63cb83774eca938126
7
+ data.tar.gz: 895c7d45a3eef849c1034f9f1d99162c76c58eda9605ad20896a71a97fba898eb241e37b9cc3b91027aa074d2ecaa14621d7bbee5fb48869ced9e4d15ac07de6
@@ -1,16 +1,8 @@
1
1
  module StellarBase
2
2
  class WithdrawController < ApplicationController
3
3
 
4
- WITHDRAWAL_REQUEST_PARAMS = %i[
5
- type
6
- asset_code
7
- dest
8
- dest_extra
9
- fee_network
10
- ]
11
-
12
4
  def create
13
- op = WithdrawalRequests::Operations::Create.(withdrawal_request: withdrawal_request_params)
5
+ op = WithdrawalRequests::Operations::Create.(withdrawal_request: params)
14
6
 
15
7
  respond_to do |f|
16
8
  f.json do
@@ -19,17 +11,11 @@ module StellarBase
19
11
  representer = WithdrawalRequestRepresenter.new(twin)
20
12
  render json: representer
21
13
  else
22
- head :unprocessable_entity
14
+ render json: {error: op["contract.default"].errors}, status: :unprocessable_entity
23
15
  end
24
16
  end
25
17
  end
26
18
  end
27
19
 
28
- private
29
-
30
- def withdrawal_request_params
31
- params.permit(*WITHDRAWAL_REQUEST_PARAMS)
32
- end
33
-
34
20
  end
35
21
  end
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_base-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-27 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus