deep_unrest 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deep_unrest/version.rb +1 -1
- data/lib/deep_unrest.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39b3378d09d9abba0684d5172640a0aaa0bd349d
|
4
|
+
data.tar.gz: 3fa3e32ed21c873f62eb035db3a5db2bda801372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14224f5153048960a28d33a3dfbd36cc1731f31491b52cfb234c8c01dc7c6e8fa41f48b8cf1cd4c20998d157d8e33133ae6a1b57b17c39832628098c5edeb454
|
7
|
+
data.tar.gz: 462c92935122bdfd2889862b9af7236e1eaed291b12d2cb84234a081148c4936eaf901fecdb1c0d29f4dbb51f96bbd70b8f5918a2e07ec1050c90ad6580af52d
|
data/lib/deep_unrest/version.rb
CHANGED
data/lib/deep_unrest.rb
CHANGED
@@ -388,7 +388,7 @@ module DeepUnrest
|
|
388
388
|
record = res[:record]
|
389
389
|
errors = record&.errors&.messages
|
390
390
|
if errors
|
391
|
-
base_key = "#{record.class.to_s.
|
391
|
+
base_key = "#{record.class.to_s.camelize(:lower).pluralize}[#{i}]"
|
392
392
|
errors.keys.map do |attr|
|
393
393
|
if record.respond_to? attr
|
394
394
|
errors["#{base_key}.#{attr}".to_sym] = errors.delete(attr)
|