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

Version Path
solidus_core-4.4.2 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.4.1 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.4.0 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.3.4 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.2.4 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.1.5 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.3.3 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.3.2 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.1.4 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.3.1 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.3.0 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.2.3 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.1.3 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.0.4 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-3.4.6 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.0.3 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.1.2 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.2.2 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-3.4.5 lib/generators/solidus/install/app_templates/authentication/custom.rb
solidus_core-4.2.1 lib/generators/solidus/install/app_templates/authentication/custom.rb