ish_models 0.0.33.26 → 0.0.33.27

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
  SHA1:
3
- metadata.gz: c46ddc16e4c06e25fbd09a210c979b5491175116
4
- data.tar.gz: 85a686f7fb614ee0337bac0fcae943f9e05f47ed
3
+ metadata.gz: a1f1141fe520e9cb0d758ebbda9e4beb46a52e7f
4
+ data.tar.gz: 725d6bbc39049cdd117ecbf237ea4541e9ddb0cb
5
5
  SHA512:
6
- metadata.gz: eca7d97f2292976f41acf7cc0ab734e94ffadce135a762fa1cb2687138492997e7e25bfa24d90c20ac03bf2488bc11147f2e349a5ec8397d242e3ba9480b4b4f
7
- data.tar.gz: 3d02dcc31604d8f3d5d16b8b2beeed629d9dc8cec8fe71c7f70c318b381ba943f691a07169807fbbdbf202ca6a304961ca30c38c6f9a8bbc16c0171a320878c7
6
+ metadata.gz: 3789b77fed1b6d45a25bd7a69f27c384a28f0f8ed5753c3213b2e14b6cdca1935f3292b2aa876d75b8d0afeb7876e66e18ef2704e50f0bf3041c23aebd30a014
7
+ data.tar.gz: 7782b3180c3f088c400b1e4de78d1dacfa922bc356e864deecf2f5d85c85cf42e664443c89e5867e6afb0bfdb6eedf3382454a5ef0d1350cb6edeec1e2c71435
@@ -30,6 +30,7 @@ class IshModels::UserProfile
30
30
  has_many :galleries
31
31
  has_many :reports, :inverse_of => :profile
32
32
  has_many :videos
33
+ has_many :photos
33
34
 
34
35
  #
35
36
  # preferences
@@ -11,7 +11,11 @@ class Photo
11
11
 
12
12
  has_and_belongs_to_many :viewers, :class_name => 'User', :inverse_of => :viewable_photos
13
13
 
14
- # belongs_to :profile_user, :class_name => 'User', :inverse_of => :profile_photo
14
+ belongs_to :user_profile, :class_name => 'IshModels::UserProfile'
15
+ def user
16
+ user_profile
17
+ end
18
+
15
19
  belongs_to :profile_city, :class_name => 'City', :inverse_of => :profile_photo, :optional => true
16
20
  belongs_to :profile_venue, :class_name => 'Venue', :inverse_of => :profile_photo, :optional => true
17
21
 
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.26
4
+ version: 0.0.33.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox