Sha256: eb425c3fd54e7daa31799d62a37019851d2d3ee51bab6ccc6083069b1c28413e

Contents?: true

Size: 590 Bytes

Versions: 27

Compression:

Stored size: 590 Bytes

Contents

module Workarea
  module Admin
    class GuestBrowsingsController < Admin::ApplicationController
      include Storefront::CurrentCheckout

      def create
        admin_browse_as_guest
        clear_current_order

        flash[:success] =
          t('workarea.admin.guest_browsing.flash_messages.started')
        redirect_to storefront.root_path
      end

      def destroy
        stop_admin_guest_browsing
        clear_current_order

        flash[:success] = t('workarea.admin.guest_browsing.flash_messages.stopped')
        redirect_back_or root_path
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.26 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.25 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.23 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.22 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.21 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.20 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.19 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.18 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.17 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.16 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.15 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.14 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.13 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.12 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.11 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.10 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.9 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.8 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.5.7 app/controllers/workarea/admin/guest_browsings_controller.rb