ishapi 0.1.8.132 → 0.1.8.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5f3271a8289f2fc6526c0e1fe85f9724e5cc6266774fe0d3c6929be7b30f7f1
4
- data.tar.gz: a0e800d62ef13b6797000bd33469f29f5bef6be2ac84c3a157b13ac4e085061c
3
+ metadata.gz: 214eb06a86cd16e99e941a3c22331117b6fde6f617d21149b26584718e81535b
4
+ data.tar.gz: 21b011a4ca8f9daf09753bb6ca3df95c5f8b536d321b586b9b193bcf65c03546
5
5
  SHA512:
6
- metadata.gz: f414e7dd9f06ed55bf31b0353bd0a6d06270414e6780a7a0154533fbc336e0b5eb502f11f07b77bed303b8ce9c8fece4eb3f9bf142d25da95035111e385c7ea8
7
- data.tar.gz: 5f832287f8861b0e4ae6276339ab5ddf641303fcbb17df7204b1294b22b523c7304f74fefc5cede00b9b927574687c36f7171b1dde9b3e947656c24182718273
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
- puts! @current_user, 'current_user'
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.name video.name
4
- json.video_url video.video
5
- json.thumb_url video.thumb
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.132
4
+ version: 0.1.8.133
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox