ish_models 0.0.33.110 → 0.0.33.111
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 +3 -4
- data/lib/report.rb +2 -3
- data/lib/video.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 267542d2335422e17931afc18354dbd0441e2903084a41ae6bd958841b467bd4
|
4
|
+
data.tar.gz: 83edc53811c63c9a69f7eab17a608352af9a4995ee7140fa13afa44909f974a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c4987d9f71b6bfde2a89c9ff437cdb173986e995a10dc3475440bf0c57f3eae89c8a840d8db8dadd17a0308fb64bbe8b86fa95ca3109a3649f8294d7a6a104
|
7
|
+
data.tar.gz: 95f143a5619a598c8b63f43a9ef025c3c51f5ed5f84d4206e20ddce87ee878f60d15c8317eac829366296c9d08bcbaec251d17a9ed48f573bd54c192ef4c2c88
|
data/lib/photo.rb
CHANGED
@@ -39,10 +39,9 @@ class Photo
|
|
39
39
|
:mini => '20x20#',
|
40
40
|
:thumb => "100x100#",
|
41
41
|
:thumb2 => "200x200#",
|
42
|
-
:s169 => "640x360
|
43
|
-
# :s43 => "640x480
|
44
|
-
|
45
|
-
# :w330 => "330x330>",
|
42
|
+
:s169 => "640x360#",
|
43
|
+
# :s43 => "640x480#",
|
44
|
+
:small => "400x400>",
|
46
45
|
:large => '950x650>',
|
47
46
|
},
|
48
47
|
:storage => :s3,
|
data/lib/report.rb
CHANGED
@@ -41,7 +41,8 @@ class Report
|
|
41
41
|
validates :username, :presence => true, :allow_nil => false
|
42
42
|
index({ :username => 1 })
|
43
43
|
|
44
|
-
field :
|
44
|
+
field :issue
|
45
|
+
field :subhead
|
45
46
|
|
46
47
|
belongs_to :tag, :optional => true
|
47
48
|
belongs_to :city, :optional => true
|
@@ -145,6 +146,4 @@ class Report
|
|
145
146
|
self.venues[0] || nil
|
146
147
|
end
|
147
148
|
|
148
|
-
field :issue
|
149
|
-
|
150
149
|
end
|
data/lib/video.rb
CHANGED
@@ -40,10 +40,10 @@ class Video
|
|
40
40
|
doc.city.add_newsitem( doc ) unless doc.city.blank?
|
41
41
|
doc.site.add_newsitem( doc ) unless doc.site.blank?
|
42
42
|
end
|
43
|
-
|
44
43
|
end
|
45
44
|
|
46
45
|
field :issue
|
46
|
+
field :subhead
|
47
47
|
|
48
48
|
has_mongoid_attached_file :video,
|
49
49
|
# styles: { :thumb => { geometry: '192x108', format: 'jpeg' }, },
|
@@ -72,5 +72,5 @@ class Video
|
|
72
72
|
set_callback :update, :after do |doc|
|
73
73
|
Site.update_all updated_at: Time.now
|
74
74
|
end
|
75
|
-
|
75
|
+
|
76
76
|
end
|