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: 56da4809e88d47a601a85acdeed9104c1ec4114c33a1c6cbc2c3a86b41a49003
4
- data.tar.gz: 5c68a2cb731c77780b7ccdf399b66b792dd11626447eb9b676311ac5a839d840
3
+ metadata.gz: 40dbd9815b742e951e9afd0314748a63524801f90dc3b999b52383ee5ac83433
4
+ data.tar.gz: c89e38c68545a7fbba4877f55fb3decdefd6558c59610f1bff43ccded736d728
5
5
  SHA512:
6
- metadata.gz: a7eb92d306828573f93795a3fbbebd5df72a5a63af74144d19aed2658d1245fad3d9579582d9611765884357dca7d8c3804509e2e836d10a30cf9dab3e5a4553
7
- data.tar.gz: e23a71a3d8a71b9ef5159ac2361912a186a0f7b522b83a8ca0951a84240485f9a31213f73f82fe30d207b168ffaf22786bb7fd46e3baa173a8b707c1474af6bc
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,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.7.0.4'
5
+ VERSION = '1.7.1'
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.7.0.4
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-27 00:00:00.000000000 Z
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