Sha256: 9b2fad1a3a62729fe6661f8e467014961deaae3b6490d85a9cafc61ce81f167d
Contents?: true
Size: 418 Bytes
Versions: 31
Compression:
Stored size: 418 Bytes
Contents
module Comee module Core class ProductTypesController < ApplicationController include Common def products products = Product.where(product_type_id: params[:id]) render json: {success: true, data: serialize(products)} end private def model_params params.require(:payload).permit(:code, :name, :description, metadata_schema: {}) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems