mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Tidy up OrderController
This commit is contained in:
@@ -7,13 +7,12 @@ module Spree
|
||||
|
||||
layout 'darkswarm'
|
||||
|
||||
before_action :check_authorization
|
||||
rescue_from ActiveRecord::RecordNotFound, with: :render_404
|
||||
helper 'spree/products', 'spree/orders'
|
||||
|
||||
respond_to :html
|
||||
respond_to :json
|
||||
respond_to :html, :json
|
||||
|
||||
before_action :check_authorization
|
||||
before_action :set_current_order, only: :update
|
||||
before_action :filter_order_params, only: :update
|
||||
before_action :enable_embedded_shopfront
|
||||
|
||||
Reference in New Issue
Block a user