checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: 04f5055e00ef3608b436ae004240b26578fb7c9862eee1935e6fbfb6c299e1c6
4
- data.tar.gz: 8269beafa9c7c8ca209d6eb4f35ce5ba7f7539106acd8e2ec1d984c386cff225
3
+ metadata.gz: 48f0c775bc9c06fa4941bd20b903cf38dca11a86ac7c258f809773e701e9805d
4
+ data.tar.gz: 4fdc93ba99325be6512429b40b2accdce93096091734119df9baa418455763c1
5
5
SHA512:
6
- metadata.gz: 86986d7a77393d34502750ffeb93240c71acdba6666df665f33916a815ce25b25038296a0bd5b603acfdda793354c5497f5a3b3375feeb3b4d11bcdba4aa6388
7
- data.tar.gz: a6aed10bc3451c21abf1528893e06f778beb2b669ac89a17b0ca04dc500bf098628e35d8c34f674e5a34ef00dcba3bd51b5dcaeeadc8a7686cfc476411ff0c8b
6
+ metadata.gz: 721f12023eea66b9eb26f86926d667b614b9b696865cdef97b05916b01f6635f0a830909b0653d7b78b37dcbbf56c4e26142d8b93685e98e805891b15c7f1263
7
+ data.tar.gz: 443d5b04f1849d595aec927d934c9638c4a7cd169305e368b0c451322680b89c95005dc093850976418ea6eeadc9daacbbdcf67a7dce9cec21c59c54ee3f1aa3
data/app/controllers/tramway/api/v1/records_controller.rb CHANGED
@@ -37,6 +37,7 @@ module Tramway::Api::V1
37
37
record = model_class.active.find params[:id]
38
38
render json: record,
39
39
serializer: serializer_class,
40
+ include: '*',
40
41
status: :ok
41
42
end
42
43
data/app/controllers/tramway/api/v1/users_controller.rb CHANGED
@@ -8,7 +8,7 @@ class Tramway::Api::V1::UsersController < ::Tramway::Api::V1::ApplicationControl
8
8
user_form = sign_up_form_class_name(Tramway::Api.user_based_model).new Tramway::Api.user_based_model.new
9
9
# Implement JSON API spec here
10
10
if user_form.submit params[Tramway::Api.user_based_model.name.underscore]
11
- token = ::Knock::AuthToken.new(payload: { sub: user_form.model.id }).token
11
+ token = ::Knock::AuthToken.new(payload: { sub: user_form.model.uid }).token
12
12
# FIXME refactor this bullshit
13
13
serialized_user = OpenStruct.new(
14
14
user_form.model.attributes.merge(
data/lib/tramway/api/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
module Tramway
2
2
module Api
3
- VERSION = '1.4.1.1'
3
+ VERSION = '1.4.2'
4
4
end
5
5
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.4.1.1
4
+ version: 1.4.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: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
dependencies:
13
13
- !ruby/object:Gem::Dependency
14
14
name: knock