Class: Spina::Shop::Admin::Orders::ShippingLabelsController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/spina/shop/admin/orders/shipping_labels_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
# File 'app/controllers/spina/shop/admin/orders/shipping_labels_controller.rb', line 10

def create
  # Create label and print it or some shit
  @order = Order.find(params[:order_id])
  @order.transition_to! :shipped, user: current_spina_user.name, ip_address: request.remote_ip
  redirect_to spina.shop_admin_order_path(@order)
end

#showObject



6
7
8
# File 'app/controllers/spina/shop/admin/orders/shipping_labels_controller.rb', line 6

def show
  @order = Order.find(params[:order_id])
end