Remove explicit content_type declarations in Api::OrderCyclesController

This should be handled in `Api::BaseController`
This commit is contained in:
Matt-Yorkley
2020-12-30 12:55:02 +00:00
parent d0800b5e32
commit 261ed751cb

View File

@@ -20,7 +20,7 @@ module Api
search_params
).products_json
render plain: products, content_type: "application/json"
render plain: products
rescue ProductsRenderer::NoProducts
render_no_products
end
@@ -33,13 +33,13 @@ module Api
render plain: ActiveModel::ArraySerializer.new(
taxons, each_serializer: Api::TaxonSerializer
).to_json, content_type: "application/json"
).to_json
end
def properties
render plain: ActiveModel::ArraySerializer.new(
product_properties | producer_properties, each_serializer: Api::PropertySerializer
).to_json, content_type: "application/json"
).to_json
end
private