ish_models 0.0.33.244 → 0.0.33.246

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e03d895b8c833b21a3305f9acf0dc93eea440a0aa129347f39912ac2ad28fdc8
4
- data.tar.gz: 88217b632351f5ddb12991a90b707862131d21d4a2daf5c1acce3c708ea08ccc
3
+ metadata.gz: c4d9c4a1432222dac50b23ec2b44f805fd7d67bd2c1797218abb86280303343d
4
+ data.tar.gz: 6cda8b0de6f72e2cfe61579e2590f7d5636daddf68d87e36c6cbc35b5492fe56
5
5
  SHA512:
6
- metadata.gz: aeaba4225359ffea476ac05300ddb16c31053d164dab56807479958e06ba4f56d109531fe980a712743ce64324b282e188b3edad2bd31dddc48eb8b915b662cd
7
- data.tar.gz: c0f379b695e049d84c590ad6faa9e839befe7f54f976a89af6476c06657ee6e555d29cee5d9157b57edf5451b59a135540f6882991f88498e816fafc1dcb7ad9
6
+ metadata.gz: c11c49f0d877be6f3730a80f467c4de7afb7de52be03679128c0c9d0ee44e62dd4af36b15fd7ee72581aabcaa7ef40ea537ae676ba0612a58430d75232baffe3
7
+ data.tar.gz: 329d36a6aa69828ef8b129d24a18e8bd1742977ba340e5909b00af634066e9717ea84aed13107b3c5bac5a278f791f4f6252dc42c5a21a60eebca65f24f8dc45
@@ -68,6 +68,7 @@ class ::Ish::EmailContext
68
68
  Ish::EmailCampaign.from_email_list
69
69
  end
70
70
 
71
+ ## like belongs_to to_lead , but Lead is SQL to just the lead_id
71
72
  field :lead_id, type: :integer
72
73
  def lead; Lead.find( lead_id ); end
73
74
  def to_email; lead[:email]; end ## @TODO: remove, just use the lead. _vp_ 2023-03-27
@@ -46,6 +46,7 @@ class Ish::UserProfile
46
46
  has_and_belongs_to_many :shared_galleries, inverse_of: :shared_profiles, class_name: 'Gallery'
47
47
  has_and_belongs_to_many :shared_markers, inverse_of: :shared_profiles, class_name: 'Gameui::Marker'
48
48
  has_and_belongs_to_many :shared_locations, inverse_of: :shared_profiles, class_name: 'Gameui::Map'
49
+ has_and_belongs_to_many :shared_videos, inverse_of: :shared_profiles, class_name: '::Video'
49
50
  has_many :my_markers, inverse_of: :creator_profile, class_name: 'Gameui::Marker'
50
51
  has_many :my_locations, inverse_of: :creator_profile, class_name: 'Gameui::Map'
51
52
  has_many :invoices, class_name: '::Ish::Invoice'
data/lib/ish_models.rb CHANGED
@@ -4,8 +4,6 @@ require 'ish/configuration'
4
4
  require 'aws-sdk-s3'
5
5
  require 'kaminari/mongoid'
6
6
 
7
- ::S3_CREDENTIALS ||= {}
8
-
9
7
  module Gameui; end
10
8
  module Iro; end
11
9
  module Ish; end
data/lib/video.rb CHANGED
@@ -38,7 +38,9 @@ class Video
38
38
  validates_uniqueness_of :youtube_id, allow_blank: true, case_sensitive: false
39
39
  before_save { youtube_id.present? || youtube_id = nil }
40
40
 
41
- belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
41
+ belongs_to :user_profile, :class_name => 'Ish::UserProfile', :inverse_of => :videos
42
+ has_and_belongs_to_many :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_videos
43
+
42
44
 
43
45
  index({ is_trash: 1, user_profile_id: 1, created_at: 1 }, { name: 'idx1' })
44
46
 
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.244
4
+ version: 0.0.33.246
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox