tramway-api 1.7.0.4 → 1.7.1
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: 40dbd9815b742e951e9afd0314748a63524801f90dc3b999b52383ee5ac83433
|
4
|
+
data.tar.gz: c89e38c68545a7fbba4877f55fb3decdefd6558c59610f1bff43ccded736d728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f25253de2a822d2670d24d3353b819a81647b4e71f47c9cd9ea59e4224b3873d10e87e7dae2a6f6a381552c77082af85a2a4599c3cae61841eae580dd9ed01a
|
7
|
+
data.tar.gz: f9885261394ea1e8a78027a626ce9f09eb9ffd3308ed916caa0519aa80f51bc1589aaa0bfd9dc900d58c11c7ac0603ee4684f8f35f5049a4b3444ef7925cbc80
|
@@ -29,7 +29,7 @@ module Tramway::Api::V1
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def update
|
32
|
-
record_form = form_class.new model_class.active.find_by uuid: params[:id]
|
32
|
+
record_form = form_class.new model_class.active.find_by! uuid: params[:id]
|
33
33
|
if record_form.submit snake_case params[:data][:attributes]
|
34
34
|
render json: record_form.model,
|
35
35
|
serializer: serializer_class,
|
@@ -41,7 +41,7 @@ module Tramway::Api::V1
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def show
|
44
|
-
record = model_class.active.find_by uuid: params[:id]
|
44
|
+
record = model_class.active.find_by! uuid: params[:id]
|
45
45
|
render json: record,
|
46
46
|
serializer: serializer_class,
|
47
47
|
include: '*',
|
@@ -49,7 +49,7 @@ module Tramway::Api::V1
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def destroy
|
52
|
-
record = model_class.active.find_by uuid: params[:id]
|
52
|
+
record = model_class.active.find_by! uuid: params[:id]
|
53
53
|
record.remove
|
54
54
|
render json: record,
|
55
55
|
serializer: serializer_class,
|
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.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|