effective_email_templates 1.1.4 → 1.2.0

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: 0a2f895f0cecf93fc54a7e2bc9498970a22523bc07da7188cd74e3b6a3b80009
4
- data.tar.gz: 2e3731ad4ca65b2db718d07cde969c56167403c80bfe0ce396d3454a6f70f05b
3
+ metadata.gz: 5a825ba548fb85d4457abfdbfb0275fbb2c587e48ab30e0e397b41ea9d2f42c3
4
+ data.tar.gz: 7626c2168d86a547aa3a13e45f52c236eeb5e65c619b8a2c51bfb39f65d2fd3f
5
5
  SHA512:
6
- metadata.gz: 0afb4d07dce4adb35ca0921361f7be65cd350dcd1c0fa9b995071ae839c62c2a38d8602d39852484cecc0a7a9fc6b270f42df7c4d919e943c3fb2ae05b4c1af1
7
- data.tar.gz: dc7fb47226b0117134be8dcedd4f368551e3f1aced4d53b28f8091347f74ce51555afecc0d6420df815ddfe44125525e5b204c195e6bef499b34e707a4baf7a8
6
+ metadata.gz: 29b61247525c81716517797802fb7a21f0bfd7176c76ba7f9302f6988fd3741c031aac688ba5104b5b7a41a45454ba067fc119e16f0a42166bac41310e88726d
7
+ data.tar.gz: 671760817de5c14bb20712ef01925bf637301f3ff8dee6d5c93ef77b8e5fa85b245541c8e871af1216d182eba3c77d38bc85e39f29d9177aa9928a1767e2abe4
@@ -4,7 +4,9 @@ module EffectiveEmailTemplatesMailer
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  def mail(headers = {}, &block)
7
- email_template = Effective::EmailTemplate.where(template_name: action_name).first!
7
+ email_template = Effective::EmailTemplate.where(template_name: action_name).first
8
+ return super() if email_template.blank?
9
+
8
10
  assigns = (@assigns || {})
9
11
 
10
12
  # Parse assigns. Special keys for body and subject.
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.1.4'.freeze
2
+ VERSION = '1.2.0'.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.4
4
+ version: 1.2.0
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: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails