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: d66ba0f93f6cd3a1832c10f9b0ee96d264cbcc1c
4
- data.tar.gz: 5e2869ecf1bf1882d35c0717b30d2eeac3611ec1
3
+ metadata.gz: 1d58be6aaa4a03a2f9d35a845740d8c3d6858dcc
4
+ data.tar.gz: 069597aebef68a33e6ca6dc71d51f7a589023d35
5
5
  SHA512:
6
- metadata.gz: ea278d1bc029a4691f8e1ade7943b62f7685c4f44fda6599c310776d9fa1d5f153abcd8c92a180ac8a6503eb6f329c394c5591af4329d6a2619d05ca57eb3708
7
- data.tar.gz: 60d526c9f9686bd64ce7cac42d71b908d991fca59a7efca29555779c3881cb70f7c7ce640904f2559df643d755d6f80871de09046c880643ad1f1c8a6c232a96
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)
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '0.2.10'
2
+ VERSION = '0.2.11'
3
3
  end
@@ -19,7 +19,7 @@ module RailsEmailPreview
19
19
  # auto-loading configured in initializer
20
20
  mattr_accessor :preview_classes
21
21
 
22
- # send email button (experimental, false by default)
22
+ # send email button
23
23
  mattr_accessor :enable_send_email
24
24
  self.enable_send_email = true
25
25
 
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.10
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-27 00:00:00.000000000 Z
11
+ date: 2013-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport