rails_email_preview 0.2.10 → 0.2.11
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: 1d58be6aaa4a03a2f9d35a845740d8c3d6858dcc
|
4
|
+
data.tar.gz: 069597aebef68a33e6ca6dc71d51f7a589023d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2aa70c01c5e03699d7c14a5566a0fe378bec24b6a8114bcde0431a973bf4447fee6c3cee8d4f152e5638b987b4a81d1af1c1b4a03b776f9277151d83381bbef
|
7
|
+
data.tar.gz: 565177dd762effc6e9ce78ff5e09d3663b035aa488890c7cd88c0cfe65f770987816e8a91bc1f272c15de6c0c82c3c91322edce7d225f9ac7f7a7c6fd093f698
|
@@ -45,8 +45,8 @@ module RailsEmailPreview
|
|
45
45
|
# Will also render an "✎ Edit text" link if used from
|
46
46
|
def cms_email_snippet(snippet_id = self.cms_email_id)
|
47
47
|
snippet_id = "email-#{snippet_id}"
|
48
|
+
site = Cms::Site.find_by_locale(I18n.locale)
|
48
49
|
if Cms::Snippet.where(identifier: snippet_id).exists?
|
49
|
-
site = Cms::Site.find_by_locale(I18n.locale)
|
50
50
|
# Fallback default locale: (# prefill)
|
51
51
|
unless (content = cms_snippet_content(snippet_id, site).presence)
|
52
52
|
default_site = Cms::Site.find_by_locale(I18n.default_locale)
|
data/lib/rails_email_preview.rb
CHANGED
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Mazovetskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|