ish_models 0.0.33.236 → 0.0.33.237

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: c580722d18c96031a011c7ea79b1a450e5b7cb721c593c4883197b177a268910
4
- data.tar.gz: 57d131d15cc10bc3292bdb4af381de8f71b6ce6bbfa5ff526cf34563110b6dbb
3
+ metadata.gz: ecce740f5d2efcbf23bae3ac90345798790279b39de3559a1f400911b11107df
4
+ data.tar.gz: 8f5a2146fe4099ff9ee7a3869507e98450f57a024b133b8b4706ad4aab384839
5
5
  SHA512:
6
- metadata.gz: 4773cc9026faf169a7a50f92e6cb82119265644e56a54a0e4d65e7d403944b391583089be21e6185e14130330f0dae41c2eb1b943dd3d7c95c6eb81e7b759252
7
- data.tar.gz: 123104d4cd0fafb595aeb15d291f6cc38285b0db5cd50fe8669d0403cebf8162425c2ae8d7507a6f708c8daf24e2a1504cfb278e25cfd988284d7a69802da979
6
+ metadata.gz: e04996ef74d595649d87c22b6f6e828c713f8bc4638f2da49ed85548481467c22e66a3c00b3435afb9337bc863a42eb6c69613598e0889a93124f07bd2b44c3d
7
+ data.tar.gz: 491b70c769dd230079e463bc8b2387e7fbf91ae72a0872782b68de4ae0046ad1ffd8d5aa0ad8e68269a659613f03b39e7d565cdc6d498b5d25742348c15e99f5
@@ -33,7 +33,9 @@ class ::Ish::EmailContext
33
33
  # validates_presence_of :from_email
34
34
 
35
35
  field :subject
36
- # validates_presence_of :subject
36
+ def subject
37
+ self[:subject].presence || tmpl.subject
38
+ end
37
39
 
38
40
  belongs_to :email_template
39
41
  def tmpl; email_template; end
@@ -12,7 +12,7 @@ class ::Ish::EmailTemplate
12
12
  field :layout, type: :string, default: 'plain'
13
13
  LAYOUTS = %w| plain
14
14
  m20221201react m20221222merryxmas
15
- marketing_react_1
15
+ marketing_react_1 marketing_react_2
16
16
  marketing_ror_1 marketing_ror_2
17
17
  marketing_wordpres_1 marketing_wordpress_2
18
18
  piousbox_roundborders
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.236
4
+ version: 0.0.33.237
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox