Sha256: 5f245c56fd6d92f6a83c48cff358323c2b1410ca8797eff2d5121238fc25fba8
Contents?: true
Size: 658 Bytes
Versions: 5
Compression:
Stored size: 658 Bytes
Contents
module Spree module Api module V2 module Storefront class VendorsController < ::Spree::Api::V2::ResourceController private def model_class ::Spree::Vendor end def scope ::Spree::Vendor.active end def resource scope.find_by(slug: params[:id]) || scope.find(params[:id]) end def resource_serializer Spree::V2::Storefront::VendorSerializer end def collection_serializer Spree::V2::Storefront::VendorSerializer end end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems