tramway-api 1.8.2 → 1.8.2.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: 56cacd097b745beaad7a04f1b31a63f645ffcb0ca3f2705be6c636765e04968a
4
- data.tar.gz: 30b2598b412f3b87d48895254e1eef6ffd8b1c20299ea07b9bee766397aff8a5
3
+ metadata.gz: 8fd5eb63a3085dbdc29a350358d30c2ce9270cb633cb9df6bf0440ae5d1b5cf7
4
+ data.tar.gz: e5a0164cc37868cddd31cf2059f3e4e2632517ef0fe22402b8b82530c6f2e09a
5
5
  SHA512:
6
- metadata.gz: 42275c0a399c5f988e6cbf683a03b1eacbf3aae1da85a212ef06f48e936ed9e0a856ba89132d80e4c4f11e49a620f4cb8a7f2ee2402857ac24a4e5d2772f46c5
7
- data.tar.gz: ae1465d070ee21a997310922cd43898617a617d5d74a727e4a37abd6717aca961ca833c547038703738227f2c9559e295dcd3c7bdcf191893b1957f95c962964
6
+ metadata.gz: bacbee8ac56ed2762f07d379dc8173be038fc879f70609342eeafea6ce7234cef25eaf41997024d270a14b987ec7e46ae7895e6206bb4a759499c8bde8415ade
7
+ data.tar.gz: 28a185ebdd3b318a6db6be643a0f6b9ac2cb1311c5c56d5748699b0a27be52d565cb615b5281fd32fd31e9e67395d2a49b31ab18a1c88816d467c467a4caa2a4
@@ -27,12 +27,8 @@ class Tramway::Api::V1::ErrorSerializer < ActiveModel::Serializer
27
27
  end
28
28
 
29
29
  object.model&.attributes&.each do |attribute_key, attribute_value|
30
- if attribute_value.is_a?(Reform::Form)
31
- error_messages.merge!(error_messages(attribute_value, path + [attribute_key]))
32
- elsif attribute_value.is_a?(Array)
30
+ if attribute_value.is_a?(Array)
33
31
  attribute_value.each_with_index do |array_attribute_value, array_attribute_key|
34
- next unless array_attribute_value.is_a?(Reform::Form)
35
-
36
32
  error_messages.merge!(
37
33
  error_messages(
38
34
  array_attribute_value,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.8.2'
5
+ VERSION = '1.8.2.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.8.2
4
+ version: 1.8.2.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-04-17 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers