ishapi 0.1.8.150 → 0.1.8.151
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: 48a60ea3b0572e7a03c6367c503ade90a23d0c9c668f7126328cf69fb6edd6f0
|
4
|
+
data.tar.gz: '059b472d0856d0984b540d92207035c0c7e5593a050ae0693d4e309351427f02'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9730c397b9c7468348771f3f25d26a20d3544ab22930ad58363f7b0b79ee1bc9a61b625e7d6c7f1a92c76e12eee9dc875f7b857fe597c9f839e179a29e982978
|
7
|
+
data.tar.gz: 53770e986e3fb7f2f84ff09ac672444961d8eeb79dbafc285fc1961017866a4ca6ef85732b805064b5fc70df61a93f5977a30eec1ab51f8e9135503a89190701
|
@@ -1,14 +1,11 @@
|
|
1
1
|
|
2
|
-
module Ishapi
|
3
|
-
module My
|
4
|
-
class ReportsController < Ishapi::My::MyController
|
5
2
|
|
6
|
-
|
7
|
-
authorize! :my_index, Report
|
8
|
-
@reports = @profile.reports
|
9
|
-
end
|
3
|
+
class Ishapi::My::ReportsController < Ishapi::ApplicationController
|
10
4
|
|
11
|
-
|
5
|
+
def index
|
6
|
+
authorize! :my_index, Report
|
7
|
+
@reports = @profile.reports
|
12
8
|
end
|
9
|
+
|
13
10
|
end
|
14
11
|
|
@@ -1,14 +1,10 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
module My
|
4
|
-
class VideosController < Ishapi::My::MyController
|
2
|
+
class Ishapi::My::VideosController < Ishapi::ApplicationController
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
10
|
-
|
11
|
-
end
|
4
|
+
def index
|
5
|
+
authorize! :my_index, Video
|
6
|
+
@videos = @current_user.profile.videos.unscoped.where( is_trash: false ).order_by( created_at: :desc ).limit(20)
|
12
7
|
end
|
8
|
+
|
13
9
|
end
|
14
10
|
|