validation_hints 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cf32471d0a80a02b0a5db3b89ba7564d5fa92e00e2e2bcb2e28f04a4b462d04
4
- data.tar.gz: 044bd3521b06d203e01dc40084cfa1d0cf9e09c52b33be24e1067f7b692cfa77
3
+ metadata.gz: 70e978eeafefe43ecdd6e839270b02dcce985559b5e53f74f25f78554c2d7797
4
+ data.tar.gz: 1bbfb375b4ca43456e823ff30bd0d98ac6719114055276cdafb8f9bb121436d8
5
5
  SHA512:
6
- metadata.gz: daa31a4cb817fe4cef08124e970d2a5a02c8f6c8350441486f817354e011b3d7bc18690f089da18d31e9443db4ebb7b278433e8280de156f5b6a895514812f1f
7
- data.tar.gz: 0b2b921d259e537178a4675d787fda8632ae87ed90a7f356e82a47768892802d3ce0f6c99993d6856468e68e986cbd49975267044706ff2c4994dc7e669e93e9
6
+ metadata.gz: 53067b662b9c4db01b83319d0f09bbceb09153f1c63c57e8a64905e858fa1bcdd20dc237a43ef02c36bba69838d30c03bfb717c2528a674b62b118f46895b32a
7
+ data.tar.gz: bcfa1937c2d921c549375d7a3543f4a7f278f17e9f447e7b67b867a8788561538ed483b8253bf296f1f0fb8733d8e5d195e21db8bf63c756421972827fdde919
@@ -306,16 +306,17 @@ module ActiveModel
306
306
 
307
307
  key = defaults.shift
308
308
 
309
- options = {
310
- :default => defaults,
311
- :model => @base.class.model_name.human,
312
- :attribute => @base.class.human_attribute_name(attribute),
313
- }.merge(options)
314
- I18n.translate(key,
315
- :default => defaults,
316
- :model => @base.class.model_name.human,
317
- :attribute => @base.class.human_attribute_name(attribute),
318
- )
309
+ # options = {
310
+ # :default => defaults,
311
+ # :model => @base.class.model_name.human,
312
+ # :attribute => @base.class.human_attribute_name(attribute),
313
+ # }.merge(options)
314
+ I18n.translate( key,
315
+ default: defaults,
316
+ model: @base.class.model_name.human,
317
+ attribute: @base.class.human_attribute_name(attribute),
318
+ count: options[:count],
319
+ )
319
320
  end
320
321
 
321
322
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module ValidationHints
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_hints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares