ish_models 0.0.33.225 → 0.0.33.226

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/email_template.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcf6779d3d2bafd20719969eb3a2c13681784ce9a6486e444fd8407299b68b10
4
- data.tar.gz: 5a0de640fd761b5af8709aae17be40572284c3462fb214849b26dfb440595d7e
3
+ metadata.gz: 02f2fdc590d67f5ad6513008477007b86c0138afa96e4209eb6b1f1997378425
4
+ data.tar.gz: 8ab4cc3c068c5b7aa92310d8aa357897e91dfde2db493f4c09f4904785df5699
5
5
  SHA512:
6
- metadata.gz: bb445008b52c1d966e8b190241ff6621e3799d0a242221c0b618d1cbd24a75a6f8ddfac7f3f3f39e0815b0dbc849c02d8f107bb16ce915786afd18f3adbaa129
7
- data.tar.gz: a6d9882e974666522ec2358b443f0c4deac2fda3b20ac0a8b68f9adabf606fcc02264b5876003f803129a69a609c1cd758d644dfb83e2050eca6f959a8d13014
6
+ metadata.gz: 91667162849af81e259b3455aa6d4174780d649d7af795dde6679f12c2cb536457ce82e341a52033cb3a55780481a965d3dc8d0a88319762ba4cb5446d631e0a
7
+ data.tar.gz: 64991ebc764353e7f1635642b4995881e706ea7a11336583098316890f35b6ed4462170ca92b53ce7d8e5c408a8bd3286619fb3b0f7a90341cf1d2c41ea2ae6f
@@ -47,5 +47,10 @@ class ::Ish::EmailTemplate
47
47
  has_many :email_actions, class_name: '::Office::EmailAction'
48
48
  has_many :email_contexts, class_name: '::Ish::EmailContext'
49
49
 
50
+ SLUG_BLANK = 'blank'
51
+ def self.blank_template
52
+ out = Tmpl.find_or_create_by({ slug: SLUG_BLANK })
53
+ end
54
+
50
55
  end
51
56
  ::Tmpl = ::Ish::EmailTemplate
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.225
4
+ version: 0.0.33.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox