tramway-api 1.6.1.1 → 1.6.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: bca58876f3668111e2468cbc1f4c891addfc537f922d962df2e0d7fed1ce3c0c
4
- data.tar.gz: 1ab78086fb53b2caaa91afd84f03f253044b2bb2795aabbad1bbb2e4a39cfe95
3
+ metadata.gz: f922c7476e068d750206e1c8d1efd032ea2057c91840d4855c3cb49119a930f9
4
+ data.tar.gz: 548da8c04040747f5d7628f54a77d90d1f0fcd5773d418d322137dbe3c70b07e
5
5
  SHA512:
6
- metadata.gz: 4d2ac014846f179a7dcfb5878f78f344df7ea4c693aa9d16eb4f344462ff3ac0723901dd3c88bb7378ca09e09380891270ecf0a21f689e3372a74da6c9f8ca8a
7
- data.tar.gz: acd4515b5542e5abf1e3f61916dfd6c26fb9e34f48a34b2098c1c498955a65ab3b2053cfa17b1ac7c89be5349d6eef8b879344b66ec6345b4c118d7186cda082
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[user_based_model.name.underscore]
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(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.6.1.1'
5
+ VERSION = '1.6.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.6.1.1
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-08 00:00:00.000000000 Z
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