Sha256: 007d1565346da985d2fbfbc5a9fd7674f464b5da68a057f5ad6e636ac51c99f8

Contents?: true

Size: 324 Bytes

Versions: 3

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_completed
    else
      render :show
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_recurring_order-2.2.2 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.2.1 app/controllers/spree/orders_controller_decorator.rb
spree_recurring_order-2.1.10 app/controllers/spree/orders_controller_decorator.rb