flash_validators 3.0.3 → 3.0.4

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: 868f39ce91250dfa8f7e3483c279d648bf55ac30
4
- data.tar.gz: ee3618b918242696d58fb50d170b877f5f03f84a
3
+ metadata.gz: 34f5cbfc9a87282bcc4fa119a4ab58804ddcb509
4
+ data.tar.gz: a07ef2eeeef5e42b5151d8fb35d2d264848d4678
5
5
  SHA512:
6
- metadata.gz: 10a61abd3c4144c795d263fb59a35bb81cf93220b81d69eea649c4d9b317014691b7d57224b46c0731a848184d938c0738643b6e0d58a0955a93f0615a44388e
7
- data.tar.gz: d4d253c2fdb4413f872cd9de4cb288462bd60ae425b42eeba747e5fafdc1a5236686cfc03e77aacca8c2e595ae151f34f8bdfe5bf10d3ec153349338452c830b
6
+ metadata.gz: e4078df459b4291ca1d1d984b74674c10aae8951be5d68e3935780f66dc090ec97dfb64e36d2aded821532f300d1d4320c3be360e7264b451c3120f459d123fb
7
+ data.tar.gz: 84862f4d15bce3fc2d922656e1f1ed85498ee9bcbca94b4d2b296ce3d5a7539dc7cb5be43f7275b7609fd4f5751394e86d84a960095a42ec6f2d41f7fbed06b3
@@ -67,9 +67,15 @@ if defined?(Rails)
67
67
  class Railtie < ::Rails::Railtie #:nodoc:
68
68
  initializer 'flash_validators' do |app|
69
69
  FlashValidators::Railtie.instance_eval do
70
- pattern = pattern_from app.config.i18n.available_locales
70
+ pattern = pattern_from(app.config.i18n.available_locales)
71
71
 
72
- add(pattern)
72
+ if pattern.blank?
73
+ add('*')
74
+ else
75
+ pattern.each do |locale|
76
+ add(locale)
77
+ end
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -1,3 +1,3 @@
1
1
  module FlashValidators
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez