ish_models 0.0.33.16 → 0.0.33.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/newsitem.rb +2 -1
  3. data/lib/photo.rb +5 -4
  4. data/lib/video.rb +2 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6504d161039c7315801a312e61d574543f6713b2
4
- data.tar.gz: e201e2db36e64d35d7c60660318711c0a3990a76
3
+ metadata.gz: af5f67105cd9a658c9da1bfed7341c91283a916c
4
+ data.tar.gz: 30edc0c8af7d8ac2398b472baa5996bbfe7d4e82
5
5
  SHA512:
6
- metadata.gz: d6a501418f6a398a38b25c4c5fdd830388681001a415c51fa33d472f9e563a57dad3e15b1290358ff1ce97d7278be9f7c789097c387a46457c03c7b20f8558b1
7
- data.tar.gz: a77e438048f63e668115acd7946848c23300cd7479472e5772f565857fe4da9c7043261a2d9d8be725e0da11a0ba5da540bd87f617ec9ccdde2b89183f426e3c
6
+ metadata.gz: 418463a134e7c49da4eed746e449587cc8d10eefb9752b5c226dc83cf05011272b5c324df9a0a49cd703aede066d945c194475ef29b35df8ff7dcd39a3608550
7
+ data.tar.gz: f9bf9b4b085bb1a2aa1d1ac9e0cc4b1bd7ae0360e110ba59f0d53d70fdd19a8593297829dee87a747d822e0d89ededce42b1334dde2738fa565ae35abdd5cbd1
data/lib/newsitem.rb CHANGED
@@ -13,7 +13,8 @@ class Newsitem
13
13
  belongs_to :city, :optional => true
14
14
  belongs_to :report, :optional => true
15
15
  belongs_to :gallery, :optional => true
16
- # has_one :video
16
+ has_one :video
17
+ has_one :photo
17
18
 
18
19
  field :name, :type => String
19
20
  field :descr, :type => String
data/lib/photo.rb CHANGED
@@ -15,10 +15,11 @@ class Photo
15
15
  belongs_to :profile_city, :class_name => 'City', :inverse_of => :profile_photo, :optional => true
16
16
  belongs_to :profile_venue, :class_name => 'Venue', :inverse_of => :profile_photo, :optional => true
17
17
 
18
- belongs_to :report, :optional => true
19
- belongs_to :venue, :optional => true
20
- belongs_to :feature, :optional => true
21
- belongs_to :gallery, :optional => true
18
+ belongs_to :report, :optional => true
19
+ belongs_to :venue, :optional => true
20
+ belongs_to :feature, :optional => true
21
+ belongs_to :gallery, :optional => true
22
+ belongs_to :newsitem, :optional => true
22
23
 
23
24
  field :name, :type => String
24
25
  field :descr, :type => String
data/lib/video.rb CHANGED
@@ -27,7 +27,8 @@ class Video
27
27
  validates :site, :presence => true
28
28
  belongs_to :user
29
29
  validates :user, :presence => true
30
-
30
+ belongs_to :newsitem, :optional => true
31
+
31
32
  accepts_nested_attributes_for :site, :tag, :city
32
33
 
33
34
  def self.list
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.16
4
+ version: 0.0.33.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox