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 +4 -4
- data/app/serializers/tramway/api/v1/error_serializer.rb +1 -5
- data/lib/tramway/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd5eb63a3085dbdc29a350358d30c2ce9270cb633cb9df6bf0440ae5d1b5cf7
|
4
|
+
data.tar.gz: e5a0164cc37868cddd31cf2059f3e4e2632517ef0fe22402b8b82530c6f2e09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?(
|
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,
|
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.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-
|
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
|