Sha256: 16131c4add42d3d14674458488658d70c437af5f9244c32fed12c803ab96b3d8
Contents?: true
Size: 388 Bytes
Versions: 16
Compression:
Stored size: 388 Bytes
Contents
module Workarea decorate Storefront::ApplicationController do # Rendering content blocks in the context of Storefront for output # in the api response requires current_user to look at signed cookies # which don't exist. So return nil if a cookie salt is not there. # def current_user return nil if request.signed_cookie_salt.nil? super end end end
Version data entries
16 entries across 16 versions & 2 rubygems