Sha256: fba3f886145e9f726f1d560a0c680ced33b307cf56eefdd32dc71ed75d9dc701

Contents?: true

Size: 269 Bytes

Versions: 4

Compression:

Stored size: 269 Bytes

Contents

module Spree
  module Orders
    module AfterCreate
      def ensure_line_items_present
        super unless subscription_order?
      end

      def send_cancel_email
        super unless subscription_order?
      end
    end

    Order.prepend(AfterCreate)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_subscriptions-alpha-0.0.5 app/decorators/spree/orders/after_create.rb
solidus_subscriptions-alpha-0.0.3 app/decorators/spree/orders/after_create.rb
solidus_subscriptions-alpha-0.0.2 app/decorators/spree/orders/after_create.rb
solidus_subscriptions-alpha-0.0.1 app/decorators/spree/orders/after_create.rb