tramway-api 1.7.1.1 → 1.7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 882cf139a619aab77c7030d6c3864e9cfa51a6abbfe5e516891acbd192221a89
4
- data.tar.gz: 24077c4462a3d65b4dc1bcdca0761ea20b4e53c68a4af11b4ef190924128d655
3
+ metadata.gz: da48436e048ba6df03c3764a6e528da5f427c1fbac6b61f38d518c716f19ec78
4
+ data.tar.gz: b2ab9a5eb94df23ed37869e6908ae0c8fcf469816095e04fd9483fe986694247
5
5
  SHA512:
6
- metadata.gz: 8a6fcfe6c3f09ae9cbabaa91e3c4005c5abfb8aa88e5a28a792dcb6e26d1f09988b44b330865e70216239fef7ec2812f858e9179c9a0345bd7ec01f50d1f73ff
7
- data.tar.gz: 687f34614962c0a8702dd671c93aca3cfa743e3b2ef1ee0fe6f42482416090cbd5848ec035131936ffd75e33d0d204be9f84036f264001800b1a41054ab50e4d
6
+ metadata.gz: cc0856fcd9f84958606c305180ab4c719d3861e28e0f620e75630eac665e87c08f67021a953318380ba09d91876e2809a42d33a05dbf12fe3fb7cf11ce2267ff
7
+ data.tar.gz: c551fdb3f5f9d42baf32de1f4e05e3ad12a2d8cbff675b5d4a6c521febcac17e0635f5cee7d2338c3fbbddb77d9936b8ef14060b7b4d7fd1c71febd4825a2337
@@ -12,6 +12,7 @@ class Tramway::Api::V1::UsersController < ::Tramway::Api::V1::ApplicationControl
12
12
  if user_form.submit snake_case params[:data][:attributes]
13
13
  token = ::Knock::AuthToken.new(payload: { sub: user_form.model.uuid }).token
14
14
  # FIXME: refactor this bullshit
15
+ user_form.model.reload
15
16
  serialized_user = OpenStruct.new(
16
17
  user_form.model.attributes.merge(
17
18
  authentication_token: token,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.7.1.1'
5
+ VERSION = '1.7.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1.1
4
+ version: 1.7.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers