effective_email_templates 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 633c93cac11add92db1adcfdd7d2441dbf928f12abc4182798e4c66d93995fe3
4
- data.tar.gz: 85d947fcfd9da53aa93cf0b7e43e677633f250167a43afc67b1c6a71dc376a54
3
+ metadata.gz: 27a4c6ef0659bba64c76e45a9363fe649d2316ac988ef56bcd3fae6e87efe13f
4
+ data.tar.gz: effe7e9aa525fae2923b0e195ea3ec81ed492944e2cf7616f3db7af58197218d
5
5
  SHA512:
6
- metadata.gz: 4e8ed05ed566941bb48fe9ec8be95bfc4d2019b7dbbee3fd0d282fd7c01061e5e51cfc13468bd466fc09c60b1f95ad8088db37af5095eb2fdb4929c6539bd993
7
- data.tar.gz: '089e9291f52db8749cb282b2b087e162acb30c9b0c61da47d5e489a4ab18affd5f77e36aa5018f036efcde410f3ecb1594923c93fa3e57c5ccdb7211f70647f4'
6
+ metadata.gz: a31ed5dba96c21b94f282faf4023e66de6fd809e1f15ffdaf22d6179d158d0c82c01535fced61ca074d770b02ab5c9188919bca703a00ff5ae982cdf8f89d3c0
7
+ data.tar.gz: 8f5cf72c409cc8d4ef3a52ef12068af275963d7e1ee5b66efd96268b812df598c794eaea5fa612e8e314fe54a8a584fed7dd43216b07e7db864e9f163f21dc82
@@ -22,7 +22,11 @@ class EffectiveEmailTemplatesDatatable < Effective::Datatable
22
22
  end
23
23
 
24
24
  col :subject
25
- col :body
25
+
26
+ col :body do |email_template|
27
+ simple_format(email_template.body)
28
+ end
29
+
26
30
  col :content_type, visible: false
27
31
 
28
32
  actions_col
@@ -29,7 +29,7 @@ module Effective
29
29
  validates :subject, liquid: true
30
30
 
31
31
  validates :subject, presence: true
32
- validates :from, presence: true
32
+ validates :from, presence: true, email: true
33
33
  validates :body, presence: true
34
34
  validates :content_type, presence: true, inclusion: { in: CONTENT_TYPES }
35
35
  validates :template_name, presence: true
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_email_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails