tramway-api 1.6.1.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/tramway/api/v1/users_controller.rb +1 -1
- data/lib/tramway/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f922c7476e068d750206e1c8d1efd032ea2057c91840d4855c3cb49119a930f9
|
4
|
+
data.tar.gz: 548da8c04040747f5d7628f54a77d90d1f0fcd5773d418d322137dbe3c70b07e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf68c18caac058f083fe6309c1efc9a96a33db6b55e319781b30891aaa4de1a555dce9fde68d0b453c6b2bd91959fea0782e73317142a8642995624c2b56c4e
|
7
|
+
data.tar.gz: 74cb91244809c76c03442491c2689dfc1832664d3ceef4d685579b82b70cba6bf84c7bd45b5f5e4d3a71593893842f0493b52e2414ff14f3f062e48b081eff1f
|
@@ -9,7 +9,7 @@ class Tramway::Api::V1::UsersController < ::Tramway::Api::V1::ApplicationControl
|
|
9
9
|
def create
|
10
10
|
user_form = sign_up_form_class_name(user_based_model).new user_based_model.new
|
11
11
|
# Implement JSON API spec here
|
12
|
-
if user_form.submit snake_case params[
|
12
|
+
if user_form.submit snake_case params[:data][:attributes]
|
13
13
|
token = ::Knock::AuthToken.new(payload: { sub: user_form.model.uid }).token
|
14
14
|
# FIXME: refactor this bullshit
|
15
15
|
serialized_user = OpenStruct.new(
|
data/lib/tramway/api/version.rb
CHANGED
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.6.
|
4
|
+
version: 1.6.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-11-
|
11
|
+
date: 2019-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|