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