Sha256: 7f2db2c2ae4468e9b82a13ef14d728c87d3a979b8bd5c4f18da6f928626eed9e
Contents?: true
Size: 823 Bytes
Versions: 36
Compression:
Stored size: 823 Bytes
Contents
initializer 'spree_authentication.rb', <<~RUBY # Please replace this module with your own implementation of # ApplicationController#spree_current_user. # # The current setup will allow doing guest checkouts. ActiveSupport.on_load(:action_controller) do def spree_current_user # Define here your custom logic for retrieving the current user nil end end # Re-raise the original authorization error on anauthorized access Rails.application.config.to_prepare do Spree::BaseController.unauthorized_redirect = -> { raise "Define the behavior for unauthorized access in \#{__FILE__}." } end RUBY create_file 'app/views/spree/admin/shared/_navigation_footer.html.erb', <<~ERB <!-- Add here your login/logout links in 'app/views/spree/admin/shared/_navigation_footer.html.erb'. --> ERB
Version data entries
36 entries across 36 versions & 1 rubygems