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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/photo.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1f1141fe520e9cb0d758ebbda9e4beb46a52e7f
4
- data.tar.gz: 725d6bbc39049cdd117ecbf237ea4541e9ddb0cb
3
+ metadata.gz: b8be4d4151d2a009cc53bdf1f0fb0476514d0abe
4
+ data.tar.gz: 4f55889cb42158e6ceec4f2b4911a041fcfd0021
5
5
  SHA512:
6
- metadata.gz: 3789b77fed1b6d45a25bd7a69f27c384a28f0f8ed5753c3213b2e14b6cdca1935f3292b2aa876d75b8d0afeb7876e66e18ef2704e50f0bf3041c23aebd30a014
7
- data.tar.gz: 7782b3180c3f088c400b1e4de78d1dacfa922bc356e864deecf2f5d85c85cf42e664443c89e5867e6afb0bfdb6eedf3382454a5ef0d1350cb6edeec1e2c71435
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
 
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.27
4
+ version: 0.0.33.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox