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.
- checksums.yaml +4 -4
- data/lib/newsitem.rb +2 -1
- data/lib/photo.rb +5 -4
- data/lib/video.rb +2 -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: af5f67105cd9a658c9da1bfed7341c91283a916c
|
4
|
+
data.tar.gz: 30edc0c8af7d8ac2398b472baa5996bbfe7d4e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
19
|
-
belongs_to :venue,
|
20
|
-
belongs_to :feature,
|
21
|
-
belongs_to :gallery,
|
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