rails_email_preview 0.2.19 → 0.2.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbaf4be7a442f4bfe3b88dee868d30e5734d5eea
|
4
|
+
data.tar.gz: 5aa58ac87f863b6c4fda28917a998ad609068e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22eef373270fd2974c41974b8c2838219001f44c92f31445670537ae0e80af14a025713d3512959e586bd3b3f5094717cda2453eafd6f84d777e2f83a4742665
|
7
|
+
data.tar.gz: 7ae5581b11e36e3af9ebf3557f92beb0b32e0418a9809bb9b40e085f69060d08aeee577ed763999b1259540f1e6cb60eee5849d8ed2e20610be5b7cb053b384f
|
@@ -81,7 +81,10 @@ class RailsEmailPreview::EmailsController < ::RailsEmailPreview::ApplicationCont
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def set_locale
|
84
|
-
config_locale = RailsEmailPreview.locale
|
84
|
+
config_locale = RailsEmailPreview.locale
|
85
|
+
if !I18n.available_locales.map(&:to_s).include?(config_locale.to_s)
|
86
|
+
config_locale = :en
|
87
|
+
end
|
85
88
|
begin
|
86
89
|
locale_was = I18n.locale
|
87
90
|
I18n.locale = config_locale
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_email_preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Mazovetskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|