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
7587b5bc
Commit
7587b5bc
authored
Sep 13, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove method other_resource_params in base controller
parent
bef95b65
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
products_controller.rb
lib/shotengai/controllers/merchant/products_controller.rb
+0
-2
No files found.
lib/shotengai/controllers/base.rb
View file @
7587b5bc
...
@@ -123,7 +123,7 @@ module Shotengai
...
@@ -123,7 +123,7 @@ module Shotengai
# super.merge params.require(:some_key)
# super.merge params.require(:some_key)
# end
# end
def
resource_params
def
resource_params
params
.
require
(
resource_key
).
permit!
.
merge
other_resource_params
params
.
require
(
resource_key
).
permit!
end
end
end
end
end
end
...
...
lib/shotengai/controllers/merchant/products_controller.rb
View file @
7587b5bc
...
@@ -49,8 +49,6 @@ module Shotengai
...
@@ -49,8 +49,6 @@ module Shotengai
banners:
[]
banners:
[]
).
merge
(
).
merge
(
{
spec:
spec
,
detail:
detail
,
meta:
meta
}
{
spec:
spec
,
detail:
detail
,
meta:
meta
}
).
merge
(
other_resource_params
)
)
end
end
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