Sha256: 5ce5b623a32582f61e3c92fd21e1899594e8440942250b2679f8eb5c769d6559

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 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

1 entries across 1 versions & 1 rubygems

Version Path
solidus_subscriptions-alpha-0.0.4 app/decorators/spree/orders/after_create.rb