Files
openfoodnetwork/app/models/distributor_payment_method.rb
2023-06-14 15:08:22 +10:00

10 lines
326 B
Ruby

# frozen_string_literal: true
class DistributorPaymentMethod < ApplicationRecord
self.table_name = "distributors_payment_methods"
self.belongs_to_required_by_default = true
belongs_to :payment_method, class_name: "Spree::PaymentMethod", touch: true
belongs_to :distributor, class_name: "Enterprise", touch: true
end