ish_models 0.0.33.246 → 0.0.33.247

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: c4d9c4a1432222dac50b23ec2b44f805fd7d67bd2c1797218abb86280303343d
4
- data.tar.gz: 6cda8b0de6f72e2cfe61579e2590f7d5636daddf68d87e36c6cbc35b5492fe56
3
+ metadata.gz: 823be62d6f3e6bf6817ef43ebbcefda4c12049f01aedafb95b9fd01a624c6453
4
+ data.tar.gz: 9b1db16ef558002d83c109426fb41757a4b4892acc3f81a38dbaf130759b23dd
5
5
  SHA512:
6
- metadata.gz: c11c49f0d877be6f3730a80f467c4de7afb7de52be03679128c0c9d0ee44e62dd4af36b15fd7ee72581aabcaa7ef40ea537ae676ba0612a58430d75232baffe3
7
- data.tar.gz: 329d36a6aa69828ef8b129d24a18e8bd1742977ba340e5909b00af634066e9717ea84aed13107b3c5bac5a278f791f4f6252dc42c5a21a60eebca65f24f8dc45
6
+ metadata.gz: 2238d1a7cd112636cc58aba0eaaea3534a9cd8bb504b901ebe0b3b2298bb8aba90cba6abd4b5063234063c8d0348290a94e7d8979308c204996929797e991cb3
7
+ data.tar.gz: b2788efc4ae0447ff65d56aa829164a44ae1e42fa12538a63bcd6802c957568da23763d254cc8b79033eb5d25f358b28c4abf2e485dfe1709f274cb721fdc106
@@ -41,19 +41,20 @@ class Ish::UserProfile
41
41
  ROLE_ADMIN = :admin
42
42
  field :role_name, :type => Symbol, default: :guy
43
43
 
44
- has_one :profile_photo, inverse_of: :profile_city, class_name: 'Photo'
44
+ has_one :profile_photo, inverse_of: :profile_city, class_name: 'Photo'
45
45
  has_many :galleries, inverse_of: :user_profile
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_reports, inverse_of: :shared_profiles, class_name: '::Report'
49
50
  has_and_belongs_to_many :shared_videos, inverse_of: :shared_profiles, class_name: '::Video'
50
51
  has_many :my_markers, inverse_of: :creator_profile, class_name: 'Gameui::Marker'
51
52
  has_many :my_locations, inverse_of: :creator_profile, class_name: 'Gameui::Map'
52
53
  has_many :invoices, class_name: '::Ish::Invoice'
53
54
  has_many :photos
54
55
  has_many :reports, inverse_of: :user_profile
55
- has_many :videos, inverse_of: :user_profile
56
- has_many :newsitems, inverse_of: :profile
56
+ has_many :videos, inverse_of: :user_profile
57
+ has_many :newsitems, inverse_of: :profile
57
58
 
58
59
  def sudoer?
59
60
  %w( piousbox@gmail.com victor@wasya.co ).include?( self.email )
data/lib/report.rb CHANGED
@@ -35,6 +35,7 @@ class Report
35
35
  field :z, :type => Float
36
36
 
37
37
  belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile'
38
+ has_and_belongs_to_many :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_reports
38
39
 
39
40
  has_one :photo
40
41
 
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.246
4
+ version: 0.0.33.247
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox