Sha256: 7e2639bc174cd9035172086320b32d9a846851e5cc9edb85a86ce1ca1c0cda20
Contents?: true
Size: 476 Bytes
Versions: 11
Compression:
Stored size: 476 Bytes
Contents
module EnjuCirculation module EnjuCarrierType def self.included(base) base.extend ClassMethods end module ClassMethods def enju_circulation_carrier_type_model has_many :carrier_type_has_checkout_types, dependent: :destroy has_many :checkout_types, through: :carrier_type_has_checkout_types accepts_nested_attributes_for :carrier_type_has_checkout_types, allow_destroy: true, reject_if: :all_blank end end end end
Version data entries
11 entries across 11 versions & 1 rubygems