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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae3d92d31f39fb9850caad832917df453a3d1c9b
4
- data.tar.gz: e9d68cb90229eb52728e9889fcee1a0e02391b08
3
+ metadata.gz: 39b3378d09d9abba0684d5172640a0aaa0bd349d
4
+ data.tar.gz: 3fa3e32ed21c873f62eb035db3a5db2bda801372
5
5
  SHA512:
6
- metadata.gz: 8e3334ab48073acdfafd5958d876cadca7cae37e4a4d0a1845bcbc2f2d4dbfbb30894698c85ca14bb370d7c3c0aa0dd8c20d01611a8d0397df0ddacc2836d0b1
7
- data.tar.gz: cefde02eb26d6e4bfd6dcb21ec4942e4edfc3c7fea2c0b278d5fb95902b102ea768c5b424d8d009b5ce9e724f6847f664f661ac4e451ca97899eff0b6e2db583
6
+ metadata.gz: 14224f5153048960a28d33a3dfbd36cc1731f31491b52cfb234c8c01dc7c6e8fa41f48b8cf1cd4c20998d157d8e33133ae6a1b57b17c39832628098c5edeb454
7
+ data.tar.gz: 462c92935122bdfd2889862b9af7236e1eaed291b12d2cb84234a081148c4936eaf901fecdb1c0d29f4dbb51f96bbd70b8f5918a2e07ec1050c90ad6580af52d
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepUnrest
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
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.underscore.pluralize}[#{i}]"
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley