ish_models 0.0.33.18 → 0.0.33.19
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 -1
- 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: 41b6fc5cac834800b974009977d2bd7f5c489fbd
|
4
|
+
data.tar.gz: 5d75f557c7658de50b7836606c5282baebea1e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be674304cf166434557ddfac7d1db8594d73508ad52312139c568d76eae21072f49ef49250454ca8a55c007c17a1d8de875b000f842c7d30088519bb8abb6cc4
|
7
|
+
data.tar.gz: 1434cf5be3cb5a323cb1e87ffb581f79ee8b2d1da2283a1b51e0dfa35a6adc8b824d35a59b32ca99a7dc263d8d9b83e9bd5bb8f56704399f7c9f29e6f906163a
|
data/lib/video.rb
CHANGED
@@ -32,7 +32,7 @@ class Video
|
|
32
32
|
accepts_nested_attributes_for :site, :tag, :city
|
33
33
|
|
34
34
|
def self.list
|
35
|
-
[['', nil]] + Video.all.order_by( :
|
35
|
+
[['', nil]] + Video.all.order_by( :created_at => :desc ).map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
|
36
36
|
end
|
37
37
|
|
38
38
|
set_callback( :create, :before ) do |doc|
|