ish_models 0.0.33.49 → 0.0.33.50

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3708a91c0838cb91fc7f8fa3be8aa960487e49df
4
- data.tar.gz: 62af38ca3b04abbd9ae31ce3584b1bba140108cf
3
+ metadata.gz: b8f4cdd8b63c7603aad6e2845ac1a282733b2838
4
+ data.tar.gz: 786b0a678f5d78064de634d1c9b42fd0c1520e38
5
5
  SHA512:
6
- metadata.gz: 40d3aef1d03ad892385ab5071fb23621ea294e14f9d59562fadec0114e4f86e5e730a255fa9d6609c66eb9c785103fafc275ae95a4a0bed9b37a5f5c02489b4c
7
- data.tar.gz: 88e579be2f3cecfc984d34f55d10d29837917a9527d213a48b9a795b976a8ab29b513a901b02ef47bddbf44c57a3150076b5c7a4d79071c56449a9f102d9d6e3
6
+ metadata.gz: 9aea7169bce1c11c0f8103284c17b9bdf9a740e2a0089ba2b1f877c135c5e72023f0a88efd2d16de3edce2eefef795e97da1ef9c3643a263135eaec8e8338f87
7
+ data.tar.gz: afa3b39ac66e093b4e10ce649827e8f93d2b6fcde13214c3e35487f59bc39b542f28d2e80054cb3d11c6f58f8080599a45a01965f44e912e17e586695f7a98c1
data/lib/ish/lead.rb CHANGED
@@ -22,4 +22,6 @@ class Ish::Lead
22
22
  field :is_done, :type => Boolean, :default => false
23
23
  field :is_trash, :type => Boolean, :default => false
24
24
 
25
+ field :applied_on, :type => Time
26
+
25
27
  end
data/lib/newsitem.rb CHANGED
@@ -11,6 +11,7 @@ class Newsitem
11
11
 
12
12
  belongs_to :site, :optional => true
13
13
  belongs_to :city, :optional => true
14
+
14
15
  belongs_to :report, :optional => true
15
16
  belongs_to :gallery, :optional => true
16
17
  belongs_to :video, :optional => true
data/lib/photo.rb CHANGED
@@ -34,10 +34,11 @@ class Photo
34
34
 
35
35
  has_mongoid_attached_file :photo,
36
36
  :styles => {
37
- :mini => '20x20#',
38
- :thumb => "100x100#",
37
+ :mini => '20x20#',
38
+ :thumb => "100x100#",
39
39
  :small => "400x400>",
40
- :large => '950x650>'
40
+ :w330 => "330x330>",
41
+ :large => '950x650>'
41
42
  },
42
43
  :storage => :s3,
43
44
  :s3_credentials => ::S3_CREDENTIALS,
data/lib/site.rb CHANGED
@@ -85,4 +85,8 @@ class Site
85
85
  Site.find_by( :domain => 'travel-guide.mobi', :lang => :en )
86
86
  end
87
87
 
88
+ def name
89
+ "#{domain}/#{lang}"
90
+ end
91
+
88
92
  end
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.49
4
+ version: 0.0.33.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox