Fix product images

This commit is contained in:
2020-03-02 10:39:44 -05:00
parent 2a5f7e6b03
commit ebcfaadfde
4 changed files with 43 additions and 10 deletions
@@ -30,12 +30,6 @@ module Users
flash.now[:notice] = t("messages.#{params[:message]}", list: List.model_name.human, supplier: Supplier.model_name.human) if params[:message].present? && params[:message] =~ /^\w+$/
end
# General handler of json responses. Will be able to set some additional communication data.
# By default a response is ok.
def json_response(obj = {})
obj[:ok] = true unless obj.has_key?(:ok)
obj
end
def new_order_product_orders
case params[:product_orders]