Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
4bfe8877
Commit
4bfe8877
authored
Sep 25, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix product_controller
parent
a6c808e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
products_controller.rb
lib/shotengai/controllers/customer/products_controller.rb
+1
-3
products_controller.rb
lib/shotengai/controllers/merchant/products_controller.rb
+1
-1
No files found.
lib/shotengai/controllers/customer/products_controller.rb
View file @
4bfe8877
...
@@ -9,9 +9,7 @@ module Shotengai
...
@@ -9,9 +9,7 @@ module Shotengai
skip_before_action
:buyer_auth
skip_before_action
:buyer_auth
def
index_query
resources
def
index_query
resources
p
params
[
:catalog_ids
]
resources
.
catalog_list_filter
(
::
Catalog
.
where
(
id:
params
[
:catalog_ids
]))
p
::
Catalog
.
find_by_id
(
params
[
:catalog_ids
])
resources
.
catalog_list_filter
(
::
Catalog
.
find_by_id
(
params
[
:catalog_ids
]))
end
end
end
end
end
end
...
...
lib/shotengai/controllers/merchant/products_controller.rb
View file @
4bfe8877
...
@@ -14,7 +14,7 @@ module Shotengai
...
@@ -14,7 +14,7 @@ module Shotengai
def
index_query
resources
def
index_query
resources
resources
.
catalog_list_filter
(
resources
.
catalog_list_filter
(
::
Catalog
.
find_by_id
(
params
[
:catalog_ids
])
::
Catalog
.
where
(
id:
params
[
:catalog_ids
])
).
where
(
).
where
(
params
[
:status
].
blank?
.!
&&
{
status:
params
[
:status
]
}
params
[
:status
].
blank?
.!
&&
{
status:
params
[
:status
]
}
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment