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
3e292b48
Commit
3e292b48
authored
Sep 13, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove other_resource_params
parent
7587b5bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
base.rb
lib/shotengai/controllers/base.rb
+1
-1
product_series_controller.rb
...otengai/controllers/merchant/product_series_controller.rb
+0
-2
No files found.
lib/shotengai/controllers/base.rb
View file @
3e292b48
...
...
@@ -120,7 +120,7 @@ module Shotengai
# If you want to add custome columns, you can do just like:
# def resource_params
# super.merge params.require(:some_key)
# super
&
.merge params.require(:some_key)
# end
def
resource_params
params
.
require
(
resource_key
).
permit!
...
...
lib/shotengai/controllers/merchant/product_series_controller.rb
View file @
3e292b48
...
...
@@ -23,8 +23,6 @@ module Shotengai
:original_price
,
:price
,
:stock
).
merge
(
{
spec:
spec
,
meta:
meta
}
).
merge
(
other_resource_params
)
end
end
...
...
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