ish_models 0.0.33.95 → 0.0.33.96
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/video.rb +1 -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: 6650d9f574db8b4abed311432fcc1080beb6d7fa8b51837ddeba656226652c66
|
4
|
+
data.tar.gz: b3a5b1869f029aaace58838e79c6f64ada7e09b66534bd20ce1040b95da87b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3bd9c676c04628387b9e77c5ccb51e19b93cbc2b555f2088f74f616afd871a60a09395e43b39df6269cf978243fbe5298e2d55cc9255091efc208704f29ff6b
|
7
|
+
data.tar.gz: cece0654e4ecbecb8eec40846f01a936f1c46bff82070c01b20c53e11c56bfd5232123eaf48cc7672cf07516961035fcd4e00cba1b7092542621a76e79d58636
|
data/lib/video.rb
CHANGED
@@ -6,8 +6,7 @@ class Video
|
|
6
6
|
PER_PAGE = 6
|
7
7
|
|
8
8
|
field :name, :type => String
|
9
|
-
field :descr, :type => String
|
10
|
-
def description; descr; end
|
9
|
+
field :descr, :type => String, :as => :description
|
11
10
|
|
12
11
|
default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
|
13
12
|
|