Commit 3e292b48 by ivan Lan

Remove other_resource_params

parent 7587b5bc
...@@ -120,7 +120,7 @@ module Shotengai ...@@ -120,7 +120,7 @@ module Shotengai
# If you want to add custome columns, you can do just like: # If you want to add custome columns, you can do just like:
# def resource_params # def resource_params
# 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! params.require(resource_key).permit!
......
...@@ -23,8 +23,6 @@ module Shotengai ...@@ -23,8 +23,6 @@ module Shotengai
:original_price, :price, :stock :original_price, :price, :stock
).merge( ).merge(
{ spec: spec, meta: meta } { spec: spec, meta: meta }
).merge(
other_resource_params
) )
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment