ish_models 0.0.33.24 → 0.0.33.25

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: 793cdb40165946e3c00c1559d7cb3c613379e796
4
- data.tar.gz: 0295761dd6c14ba9a0385a18f1e38beae3ea8af4
3
+ metadata.gz: 16c773707afb78a847bd9be4ae3ac3f628138855
4
+ data.tar.gz: a8f5711a78c1e93c145971936d984b385e3bd212
5
5
  SHA512:
6
- metadata.gz: 8829f7f545dbf34030f2101a63654ee0e05c3e11b331a78330afd8677636b2596f398fa02996c5e16727415961095362eea24868cb1718e7a3e18e2d1ecc64e7
7
- data.tar.gz: b08b515b320b0f6cb74e0f2dc6fc8e7b14a3fcb92d42e3a9f48aca3ec6e8e2a3ccfa2dead17e1acb7c3d4b027c40c98b2897cf01087c3cadeef0ab4ff55b7428
6
+ metadata.gz: f0fca29006402c8b335d4bb68d8c8151ce9322498bb81a458772aeecf7159ec987d9df44314fd11c71bfa0124805d45f13eb6d21aa6edba647d8af28257790fe
7
+ data.tar.gz: a19f0b93b994a2b70c418616575dc13a55d5d1de242bf7dc6446503a958643c66694fdf0d605db33a08ab5690073d7ef679a3d40446a8e5bd06d9742f4cd36d7
@@ -18,7 +18,7 @@ class IshModels::UserProfile
18
18
  field :pdf_resume_path, :type => String
19
19
  field :doc_resume_path, :type => String
20
20
 
21
- field :lang, :type => String
21
+ field :lang, :type => String, :default => :en
22
22
 
23
23
  ROLES = [ :admin, :manager, :guy ]
24
24
  field :role_name, :type => Symbol
data/lib/site.rb CHANGED
@@ -13,8 +13,9 @@ class Site
13
13
  field :subhead, :type => String
14
14
  field :home_redirect_path, :type => String, :default => nil
15
15
 
16
- field :n_features, :type => Integer, :default => 4
17
- field :n_newsitems, :type => Integer, :default => 20
16
+ field :n_features, :type => Integer, :default => 4
17
+ field :n_newsitems, :type => Integer, :default => 20
18
+ field :play_videos_in_preview, :type => Boolean, :default => true
18
19
 
19
20
  # denormalized
20
21
  field :n_reports, :type => Integer
@@ -36,9 +37,9 @@ class Site
36
37
  has_many :galleries
37
38
  has_many :tags
38
39
  has_many :videos
39
- has_many :newsitems
40
+ has_many :newsitems, :order => :created_at.desc
40
41
 
41
- embeds_many :features
42
+ embeds_many :features, :order => :created_at.desc
42
43
 
43
44
  default_scope ->{ where({ :is_trash => false }).order_by({ :domain => :asc, :lang => :asc }) }
44
45
 
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.24
4
+ version: 0.0.33.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox