effective_email_templates 1.2.2 → 1.3.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: da895a8ece071a2900adb08a102dc046359629b068144d28389c7127f6884d4b
4
- data.tar.gz: 534912386dd99f2dc37110b19ba7ab93d54f4ba3bc19d69e09babdcb0ce77b56
3
+ metadata.gz: ef3facb431d4773e654d65d8797e4d616e7fcc463ab3643db556001b0d4b62b9
4
+ data.tar.gz: be4db3f2818619af838038f33711b8e7f1ace4fcec9a81127bf315ded3edcd3b
5
5
  SHA512:
6
- metadata.gz: '0215669e5b9b559277e81e6fd7950c50d928f1e93f9e8b1854288e127ed8a9519b33451429d77fb4a32e2d816aebbaaf6bd84c7bd5fffa265531a8a4230a6367'
7
- data.tar.gz: 479bf7edd52f8d7a277a8ccf9f83965274046a6e318b85741fa9a5e6ae2995e2b80fd442c1cdfae74b5532ff846067c567ef78ee7ccf2d7e33004c789962b44f
6
+ metadata.gz: 8825ea1ce92eb8d06896eeaa373de617196a087dc438c7c117fd01a550e4743ec58f6ee94db15f3bb74956e0e3a370d9148f4ab5a832a753eabeb14f951c9e41
7
+ data.tar.gz: 8160cff98ca3378e003e6aba6605140a0adaba6b4412484343699391bfda45fde02d78e7452a4d8076654299baddf31ef218a03cc5e18a4220f3d89f4af0d6ad
@@ -5,7 +5,7 @@ module EffectiveEmailTemplatesMailer
5
5
 
6
6
  def mail(headers = {}, &block)
7
7
  email_template = Effective::EmailTemplate.where(template_name: action_name).first
8
- return super() if email_template.blank?
8
+ return super if email_template.blank?
9
9
 
10
10
  assigns = (@assigns || {})
11
11
 
@@ -10,9 +10,9 @@ module EffectiveEmailTemplates
10
10
 
11
11
  def execute(overwrite:, paths: nil, quiet: false)
12
12
  return false unless ActiveRecord::Base.connection.table_exists?(EffectiveEmailTemplates.email_templates_table_name)
13
+ return false if defined?(Tenant) && Tenant.current.blank?
13
14
 
14
15
  paths ||= if defined?(Tenant)
15
- raise('expected a tenant') unless Tenant.current.present?
16
16
  ActionController::Base.view_paths.reject { |view| view.path.include?('/apps/') }.map(&:path) + Tenant.view_paths.map(&:to_s)
17
17
  else
18
18
  ActionController::Base.view_paths.map(&:path)
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '1.3.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.2.2
4
+ version: 1.3.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: 2023-02-14 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails