Commit 24d865b8 by ivan Lan

Add remark_input to custmoer order controller

parent 669ae57d
...@@ -47,9 +47,10 @@ module Shotengai ...@@ -47,9 +47,10 @@ module Shotengai
end end
def snapshot_params def snapshot_params
params[:snapshot] && params.require(:snapshot).permit( remark_input = params.fetch(:snapshot).fetch(:remark_input, nil)&.map(&:permit!)
:shotengai_series_id, :count params.fetch(:snapshot).permit(
) :shotengai_series_id, :count,
).merge(remark_input: remark_input)
end end
def edit_only_unpaid def edit_only_unpaid
......
...@@ -147,10 +147,6 @@ module Shotengai ...@@ -147,10 +147,6 @@ module Shotengai
catalog_class.where(id: super().map { |tag| Shotengai::Catalog.parse_tag(tag) }) catalog_class.where(id: super().map { |tag| Shotengai::Catalog.parse_tag(tag) })
} }
end end
# instance_eval do
# define_method(:)
# end
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