active_record_api-rest 1.0.28 → 1.0.29
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: 15f2eb6799a1e1674bad402bbc6ea33a655a4c067c2997958fe425f62513ccbc
|
4
|
+
data.tar.gz: 80ce4bff5d0377a215c6cd0b25bde3fd80b7965888a4c4f11f4a0a07aa351fe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8be238b28e467a960bc8874093eb0ea760984369e477468fb4d4f3e9bb1b2bd8d1c72be5deb8f79461cf2f1a901a08bd2a85b51f54328ab9e561dea5b3c578
|
7
|
+
data.tar.gz: f089f17a4dab459683ce2b25771c75c39c0c408574d55321ad5ed69b6116aad9bbff928caae1464ba0a7360376b12d94ba509c8d143f7f5cf594b59b976924bc
|
@@ -19,7 +19,7 @@ module ActiveRecordApi
|
|
19
19
|
|
20
20
|
def create
|
21
21
|
if model.save
|
22
|
-
|
22
|
+
render json: model, serializer: serializer
|
23
23
|
else
|
24
24
|
render json: model.errors, status: :unprocessable_entity
|
25
25
|
end
|
@@ -27,7 +27,7 @@ module ActiveRecordApi
|
|
27
27
|
|
28
28
|
def update
|
29
29
|
if model.update(modifiable_params)
|
30
|
-
|
30
|
+
render json: model, serializer: serializer
|
31
31
|
else
|
32
32
|
render json: model.errors, status: :unprocessable_entity
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_api-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Full Measure Education
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|