effective_resources 1.8.20 → 1.8.21

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: 2c710016d91d82e5d8705081872474e2ea12382b938b0d0c7b5836da9f1240a2
4
- data.tar.gz: c0fde3c5d9f60dd28a01690c60d4e352f94eb4f3d4e537c877290f06500debdb
3
+ metadata.gz: aedd54df5d6ebf911041fedaa519ab1f8fde409e6bed5fd9374e6b9460ef2506
4
+ data.tar.gz: bd179f5ee32166042cd5e0f011b40e5738b7a7ec3abca222ce778c4ac69e20cc
5
5
  SHA512:
6
- metadata.gz: 4b7c8f4a286e5a541b3a9ff3071e55b08c12b2499ae102723428c47bb563ab68716a63e05cd8c60f711f629e3b51396efd145a95f3e3f77b6b6bc3c13b0b06e7
7
- data.tar.gz: 00f0c760c16282fe326b09061376658f54efba2634cf270a50af3df559895ffaea3d83f38edb7e796b22803d9edc47503421403cfee6494c3bc47a7a0967d87e
6
+ metadata.gz: 97a13796ce565f1b05891c1b92382eaaaa8677846d60add08dd23cdc2577b883bfc285b2b8f6b3d64fb39fff1fd3acd36143f476375d08bd1740f1d1003b62d3
7
+ data.tar.gz: af4e9d7d6332731e7d5f6d7c6a0e17ec0c0d07aecff8d000e41ac9446b27b013c60fd218dcca846d06bf1f15bc3463b694f6e61c5b8784e10eb8c2d1efeab35d
@@ -41,7 +41,7 @@ module Effective
41
41
 
42
42
  messages = resource.errors.map do |error|
43
43
  attribute = error.respond_to?(:attribute) ? error.attribute : error
44
- message = error.respond_to?(:message) ? error.message : resource.errors[attribute].to_sentence
44
+ message = error.respond_to?(:attribute) ? error.message : resource.errors[attribute].to_sentence
45
45
 
46
46
  if message[0] == message[0].upcase # If the error begins with a capital letter
47
47
  message
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.8.20'.freeze
2
+ VERSION = '1.8.21'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.20
4
+ version: 1.8.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-14 00:00:00.000000000 Z
11
+ date: 2021-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails