tramway-api 1.4.2 → 1.4.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1ce2e992ce1a5fd8274e579b0ba721e3a2d2e0a2c832e3d4e64e22118818aca
|
4
|
+
data.tar.gz: fe4439d634d44737883aca3e08d16537cffced5445a71b18462dba9356f3f827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 052bda57f4c9c1e2d63e576c4714dfb2d243efb645c7b1271b823525b0114323f593f88bfe8c967ec5b1fed77e9534d60395f379620a9a946a84851c2c2ce49b
|
7
|
+
data.tar.gz: 2ec5e631e6492390fb5b3f19d33873f50dbc1ab2c6804646082d48d89653b293aa12e12b60d0102439f765937101144cc3692316a24f59aae4f2299631af9101
|
@@ -8,6 +8,7 @@ module Tramway::Api::V1
|
|
8
8
|
records = model_class.active.order(id: :desc).send params[:scope] || :all
|
9
9
|
render json: records,
|
10
10
|
each_serializer: serializer_class,
|
11
|
+
include: '*',
|
11
12
|
status: :ok
|
12
13
|
end
|
13
14
|
|
@@ -16,6 +17,7 @@ module Tramway::Api::V1
|
|
16
17
|
if record_form.submit params[:data][:attributes]
|
17
18
|
render json: record_form.model,
|
18
19
|
serializer: serializer_class,
|
20
|
+
include: '*',
|
19
21
|
status: :created
|
20
22
|
else
|
21
23
|
render_errors_for record_form
|
@@ -27,6 +29,7 @@ module Tramway::Api::V1
|
|
27
29
|
if record_form.submit params[:data][:attributes]
|
28
30
|
render json: record_form.model,
|
29
31
|
serializer: serializer_class,
|
32
|
+
include: '*',
|
30
33
|
status: :ok
|
31
34
|
else
|
32
35
|
render_errors_for record_form
|
@@ -46,6 +49,7 @@ module Tramway::Api::V1
|
|
46
49
|
record.remove
|
47
50
|
render json: record,
|
48
51
|
serializer: serializer_class,
|
52
|
+
include: '*',
|
49
53
|
status: :no_content
|
50
54
|
end
|
51
55
|
|
data/lib/tramway/api/version.rb
CHANGED