Sha256: b219e8cb033080545afd5da850100ef1d3467b163dad2ecf7e193c979761a3e8

Contents?: true

Size: 631 Bytes

Versions: 34

Compression:

Stored size: 631 Bytes

Contents

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

      def create
        admin_browse_as_guest
        self.current_order = nil

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

      def destroy
        stop_admin_guest_browsing
        self.current_order = nil

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.44 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.43 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.42 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.41 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.40 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.39 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.38 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.37 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.36 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.35 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.34 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.33 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.32 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.31 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.30 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.29 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.28 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.27 app/controllers/workarea/admin/guest_browsings_controller.rb
workarea-admin-3.4.26 app/controllers/workarea/admin/guest_browsings_controller.rb