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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/video.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b609b07fe0e541e0cf8a0ffa27e7fbfacb506e61
4
- data.tar.gz: 30a517868465f6e73bc46f9d73c1a7722ae3ae28
3
+ metadata.gz: 41b6fc5cac834800b974009977d2bd7f5c489fbd
4
+ data.tar.gz: 5d75f557c7658de50b7836606c5282baebea1e15
5
5
  SHA512:
6
- metadata.gz: 5021586006c10d09825173891d8bfd98e22eea5bf71743e3ceb248fb5951746572f4914eee2b1e49e094b6cf4edbdd56aecb83f7fa35780f8aa13f2b1f4be651
7
- data.tar.gz: 2be6c015956ca93f196a6eb580550f249f67f90ff51ecc5ede25ff914884c92e91baf4d761cc4c3b32c58639dac1e51422f690bfead2e2fd740fef3fcdd6cd27
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( :name => :desc ).map { |item| [ item.name, item.id ] }
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|
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.18
4
+ version: 0.0.33.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox