ish_models 0.0.33.27 → 0.0.33.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photo.rb +2 -5
- 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: b8be4d4151d2a009cc53bdf1f0fb0476514d0abe
|
4
|
+
data.tar.gz: 4f55889cb42158e6ceec4f2b4911a041fcfd0021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd726eed45ac4e825baec60573356daac4793b04c27844fdfbc0441dda29e415939a2d321db03a53328a403dde371f73596f4cd5d4fe2d5994de6df8539417c3
|
7
|
+
data.tar.gz: 47e45beb7d1e9770def4354c99fa0592b4c017bef0b8cc6e6f28032e53ce2f5d475995b5288310a058ac2298021406f7d5719736700e9ea7d605829d9067de5b
|
data/lib/photo.rb
CHANGED
@@ -11,11 +11,8 @@ class Photo
|
|
11
11
|
|
12
12
|
has_and_belongs_to_many :viewers, :class_name => 'User', :inverse_of => :viewable_photos
|
13
13
|
|
14
|
-
belongs_to :user_profile, :class_name => 'IshModels::UserProfile'
|
15
|
-
def user
|
16
|
-
user_profile
|
17
|
-
end
|
18
|
-
|
14
|
+
belongs_to :user_profile, :class_name => 'IshModels::UserProfile', :optional => true
|
15
|
+
def user; user_profile; end
|
19
16
|
belongs_to :profile_city, :class_name => 'City', :inverse_of => :profile_photo, :optional => true
|
20
17
|
belongs_to :profile_venue, :class_name => 'Venue', :inverse_of => :profile_photo, :optional => true
|
21
18
|
|