ish_models 0.0.33.242 → 0.0.33.244

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: 947ab34b57772b91d9fb1b1334c035debd3a0935f5fc1d06fccd102d49742ff0
4
- data.tar.gz: c1c390a81049197dd06af734b0018f8697c21f9fec0d5b5c8f54d286ec2bdb38
3
+ metadata.gz: e03d895b8c833b21a3305f9acf0dc93eea440a0aa129347f39912ac2ad28fdc8
4
+ data.tar.gz: 88217b632351f5ddb12991a90b707862131d21d4a2daf5c1acce3c708ea08ccc
5
5
  SHA512:
6
- metadata.gz: b5824c65663990c2d9ad914fdec672f952d258a85ef77f682fe086ec49204f65c3d8b5e7ba5a99aa7ca20f613d2cd8c902fae49c0aec2fc50433d1f1c4522259
7
- data.tar.gz: c92e76f7d0c5ee56898354e1a648581a0979cf3690ebf8a9672e61250d433e3d51cea1a50bd5a4d52ebcca7720ac20aaa1d0a65614be888af7edae53c99af111
6
+ metadata.gz: aeaba4225359ffea476ac05300ddb16c31053d164dab56807479958e06ba4f56d109531fe980a712743ce64324b282e188b3edad2bd31dddc48eb8b915b662cd
7
+ data.tar.gz: c0f379b695e049d84c590ad6faa9e839befe7f54f976a89af6476c06657ee6e555d29cee5d9157b57edf5451b59a135540f6882991f88498e816fafc1dcb7ad9
data/lib/address.rb CHANGED
@@ -4,7 +4,9 @@ class Address
4
4
  include Mongoid::Timestamps
5
5
 
6
6
  belongs_to :profile, :class_name => '::Ish::UserProfile'
7
- validates :profile, :presence => true
7
+ # validates :profile, :presence => true
8
+
9
+ field :lead_id, type: :integer
8
10
 
9
11
  field :name
10
12
  field :address_1
data/lib/gallery.rb CHANGED
@@ -9,6 +9,8 @@ class Gallery
9
9
 
10
10
  field :name
11
11
  validates :name, :uniqueness => true
12
+ index({ :name => -1 }, { :unique => true })
13
+
12
14
  field :subhead
13
15
  field :descr, :as => :description
14
16
 
@@ -36,7 +36,7 @@ class Ish::EmailCampaign
36
36
  end
37
37
 
38
38
  def leads
39
- campaign_leads&.map { |p| p.lead }
39
+ ::Lead.joins( :email_campaign_leads ).where( 'email_campaign_leads.email_campaign_id' => self.id.to_s )
40
40
  end
41
41
 
42
42
  ##
@@ -17,6 +17,7 @@ class ::Ish::EmailTemplate
17
17
  marketing_wordpres_1 marketing_wordpress_2
18
18
  piousbox_roundborders
19
19
  plain
20
+ tracking_footer
20
21
  wasyaco_roundborders |
21
22
 
22
23
  field :subject
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.242
4
+ version: 0.0.33.244
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox