Sha256: bd531da3a50f576c60d9cbdd8c75ca3ea9c44419f75114731ed98d010b4981da

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

Spree::OrdersController.class_eval do

  def show
    @present_recurring = params["order_completed"] ? true : false

    @order = Spree::Order.find_by_number!(params[:id])
    @recurring_order = Spree::RecurringOrder.new

    if @present_recurring
      render :show_recurring
    else
      render :show
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_recurring_order-2.1.9 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.1.8 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.1.7 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.1.6 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.1.5 app/controllers/spree/orders_controller_decorator.rb