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 +4 -4
- data/lib/ish_models/user_profile.rb +1 -0
- data/lib/photo.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f1141fe520e9cb0d758ebbda9e4beb46a52e7f
|
4
|
+
data.tar.gz: 725d6bbc39049cdd117ecbf237ea4541e9ddb0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3789b77fed1b6d45a25bd7a69f27c384a28f0f8ed5753c3213b2e14b6cdca1935f3292b2aa876d75b8d0afeb7876e66e18ef2704e50f0bf3041c23aebd30a014
|
7
|
+
data.tar.gz: 7782b3180c3f088c400b1e4de78d1dacfa922bc356e864deecf2f5d85c85cf42e664443c89e5867e6afb0bfdb6eedf3382454a5ef0d1350cb6edeec1e2c71435
|
data/lib/photo.rb
CHANGED
@@ -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
|
-
|
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
|
|