ish_manager 0.1.8.472 → 0.1.8.473
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: a3b95fb98acfcf04033ba69dbd7a10b86c21515d0ccbe1c7f6ad109f2f2fd88a
|
4
|
+
data.tar.gz: 14f7b4fcd867f2db13a52f5134ae1b76370dad9f4ca2da263c1c6fb1d584d0ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9020667e6773781f76920a5f39716d255ca222d12dd94463e7a6bcc65ba214432cd372f1a472c5c286549edf04f9ef288f1eeccd94ffeb96fbcda2a0d112ab
|
7
|
+
data.tar.gz: 9ea41fd43030d3453c7ef25972b907773d4f2efba71fbd0ac0b8268eb756e1bb01d85b6d41a3405c4b5d151f671c83fed8c0a81fa5b44a6052f6ee6f2f7f0f5c
|
@@ -40,14 +40,14 @@ class IshManager::GalleriesController < IshManager::ApplicationController
|
|
40
40
|
authorize! :index, Gallery
|
41
41
|
@page_title = 'Galleries'
|
42
42
|
@galleries = Gallery.unscoped.where( ## This must be so for role `guy`. _vp_ 2022-10-03
|
43
|
-
:is_done.in
|
43
|
+
# :is_done.in => [false, nil],
|
44
44
|
:is_trash.in => [false, nil],
|
45
|
-
:user_profile => @current_profile,
|
45
|
+
# :user_profile => @current_profile,
|
46
46
|
).order_by( :created_at => :desc )
|
47
47
|
|
48
48
|
if params[:q]
|
49
|
-
|
50
|
-
|
49
|
+
q = URI.decode(params[:q])
|
50
|
+
@galleries = @galleries.where({ :name => /#{q}/i })
|
51
51
|
end
|
52
52
|
|
53
53
|
@galleries = @galleries.page( params[:galleries_page] ).per( 10 )
|
@@ -40,9 +40,10 @@ class IshManager::VideosController < IshManager::ApplicationController
|
|
40
40
|
|
41
41
|
def index
|
42
42
|
authorize! :index, Video.new
|
43
|
-
@videos = Video.unscoped.where(
|
44
|
-
:
|
45
|
-
|
43
|
+
@videos = Video.unscoped.where({
|
44
|
+
is_trash: false,
|
45
|
+
# :user_profile => @current_profile
|
46
|
+
}).order_by( :created_at => :desc )
|
46
47
|
|
47
48
|
if params[:q]
|
48
49
|
@videos = @videos.where({ :name => /#{params[:q]}/i })
|