ishapi 0.1.8.132 → 0.1.8.133
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 214eb06a86cd16e99e941a3c22331117b6fde6f617d21149b26584718e81535b
|
4
|
+
data.tar.gz: 21b011a4ca8f9daf09753bb6ca3df95c5f8b536d321b586b9b193bcf65c03546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bbfa9c73cb0e80eb74a7c52c2e40f120239445caabb62c153b65c21fe77258f088b289b18eab506b8a0a759ae913edae63c6561fbca2464b869ced7176a98a7
|
7
|
+
data.tar.gz: 3c62e845e6ec976248c8c94cd34b4bc87a370548319b8b2459560e0ed610c369ceac97e00dc5f76bb9c9805ba2d1c238b43897fd74c4a01e9722e6832694b8ee
|
@@ -5,9 +5,7 @@ module Ishapi
|
|
5
5
|
|
6
6
|
def index
|
7
7
|
authorize! :my_index, Video
|
8
|
-
|
9
|
-
|
10
|
-
@videos = @current_user.profile.videos.unscoped.where( is_trash: false ).limit(20)
|
8
|
+
@videos = @current_user.profile.videos.unscoped.where( is_trash: false ).order_by( created_at: :desc ).limit(20)
|
11
9
|
end
|
12
10
|
|
13
11
|
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
|
2
2
|
json.videos(@videos) do |video|
|
3
|
-
json.
|
4
|
-
json.
|
5
|
-
json.
|
3
|
+
json.created_at video.created_at
|
4
|
+
json.id video.id.to_s
|
5
|
+
json.name video.name
|
6
|
+
json.thumb_url video.thumb
|
7
|
+
json.video_url video.video
|
6
8
|
end
|
7
9
|
|