Commit 24d865b8 by ivan Lan

Add remark_input to custmoer order controller

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