Sha256: 4f417ff330479a657464ce4d83284b15a02fd7cd37e3b79e1b675ddeece35f03

Contents?: true

Size: 245 Bytes

Versions: 4

Compression:

Stored size: 245 Bytes

Contents

Spree::Order.class_eval do

  belongs_to :recurring_order

  def recurring?
    !recurring_order.nil?
  end

  def deliver_recurring_order_email
    if self.recurring?
      Spree::OrderMailer.recurring_email(self.id).deliver
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_recurring_order-2.2.2 app/models/spree/order_decorator.rb
spree_recurring_order-2.2.1 app/models/spree/order_decorator.rb
spree_recurring_order-2.1.10 app/models/spree/order_decorator.rb
spree_recurring_order-2.1.9 app/models/spree/order_decorator.rb