Files
openfoodnetwork/app/models/spree/shipping_category.rb

11 lines
299 B
Ruby

# frozen_string_literal: true
module Spree
class ShippingCategory < ActiveRecord::Base
validates :name, presence: true
has_many :products
has_many :shipping_method_categories, inverse_of: :shipping_method
has_many :shipping_methods, through: :shipping_method_categories
end
end