Sha256: dae5228e6b2bc1aaee8140975125420e651801d8743c65599f49da210a3654d0
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
class Plugins::Ecommerce::Front::OrdersController < Plugins::Ecommerce::FrontController before_action :commerce_authenticate before_action :set_bread def index @orders = current_site.orders.set_user(current_user).decorate render "index" end def show @order = current_site.orders.find_by_slug(params[:order]).decorate @ecommerce_breadcrumb << [t('plugins.ecommerce.messages.detail_order', default: "Detail order: #%{order}", order: params[:order])] end private def set_bread @ecommerce_breadcrumb << [t('plugins.ecommerce.messages.my_orders', default: 'My Orders'), url_for(action: :index)] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-1.2 | app/controllers/plugins/ecommerce/front/orders_controller.rb |