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

Version Path
enju_circulation-0.1.2 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.1 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre49 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre48 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre47 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre46 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre45 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre44 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre43 lib/enju_circulation/carrier_type.rb
enju_circulation-0.1.0.pre42 lib/enju_circulation/carrier_type.rb