ish_models 0.0.33.19 → 0.0.33.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_model2.rb +2 -2
- data/lib/ish_models.rb +1 -0
- data/lib/user_profile.rb +10 -0
- data/lib/user_profile.rb~ +8 -0
- data/lib/video.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b32908f187bf28f4a80d8ab62bb63cbb881cb4a
|
4
|
+
data.tar.gz: 165a8e17d001a3d343d598a1be797ac9df09ccaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5655c346570d3bfe0cfaaccff910cbadc924951be99f47bacda78dd84ee63baa3d1531843fc3951efbe3d5eb40d460472723a4efcdf2a0f8e927468d7f545e1c
|
7
|
+
data.tar.gz: a1cc3ffe056615528c523b72ba650e784ccab20b4be48f8cf3e061bd1c2e30b80733dde1b1ae02c34cb436997c1febe087ec9578f74cfc856980a6e56317a26d
|
data/lib/app_model2.rb
CHANGED
@@ -19,8 +19,8 @@ class AppModel2
|
|
19
19
|
field :y, :type => Float
|
20
20
|
|
21
21
|
def self.list conditions = { :is_trash => false }
|
22
|
-
out = self.where( conditions).order_by( :
|
23
|
-
[['', nil]] + out.map { |item| [ item.name, item.id ] }
|
22
|
+
out = self.where( conditions ).order_by( :created_at => :desc )
|
23
|
+
[['', nil]] + out.map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
|
24
24
|
end
|
25
25
|
|
26
26
|
private
|
data/lib/ish_models.rb
CHANGED
data/lib/user_profile.rb
ADDED
data/lib/video.rb
CHANGED
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.
|
4
|
+
version: 0.0.33.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -80,6 +80,8 @@ files:
|
|
80
80
|
- lib/report.rb
|
81
81
|
- lib/site.rb
|
82
82
|
- lib/tag.rb
|
83
|
+
- lib/user_profile.rb
|
84
|
+
- lib/user_profile.rb~
|
83
85
|
- lib/venue.rb
|
84
86
|
- lib/video.rb
|
85
87
|
homepage: http://wasya.co
|