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 +4 -4
- data/lib/ish_models/user_profile.rb +1 -1
- data/lib/site.rb +5 -4
- 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: 16c773707afb78a847bd9be4ae3ac3f628138855
|
4
|
+
data.tar.gz: a8f5711a78c1e93c145971936d984b385e3bd212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
17
|
-
field :n_newsitems,
|
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
|
|