flash_validators 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flash_validators/version.rb +1 -1
- data/lib/flash_validators.rb +5 -3
- 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: 05896bc64a1ad53036dd01145886ded15eff3fe6
|
4
|
+
data.tar.gz: f2e34387005e401aee7bc577ca3d6b092527d792
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee262a4ecf33890b121aaaa1d88aeedc75170a6f58fbc99b67a8847ee11c61fd981dee78bf8bea3002374c4457af5d333aff7db2654147ea7d521e7a68a42bc
|
7
|
+
data.tar.gz: c7b486b29e0674d82b5ba3de78207f62109104a58aa32d2367ae055472808c575f9116ad9b5331ae9ee9acdf99c67b74580c745c5f84ef529c1eb14c0277d60b
|
data/lib/flash_validators.rb
CHANGED
@@ -70,15 +70,17 @@ if defined?(Rails)
|
|
70
70
|
locales = locales_from(app.config.i18n.available_locales)
|
71
71
|
|
72
72
|
locales.each do |locale|
|
73
|
-
|
73
|
+
if File.file?(path(locale))
|
74
|
+
I18n.load_path << path(locale)
|
75
|
+
end
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|
77
79
|
|
78
80
|
protected
|
79
81
|
|
80
|
-
def self.
|
81
|
-
|
82
|
+
def self.path(locale)
|
83
|
+
File.expand_path("../../config/locales/#{locale}.yml", __FILE__)
|
82
84
|
end
|
83
85
|
|
84
86
|
def self.locales_from(args)
|