Sha256: 6f4b15a112e8fc9a430fe0e7c6832e67086120b17bcad4e4ba98532701c7739b
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true SimpleAuth.setup do |config| # Define with scopes will be installed. # This can be useful if you want to have separated sessions # (e.g. regular user and admin user). # # To enable both user and admin sessions, you can define the scopes # like this: # # config.scopes = %i[user admin] # config.scopes = %i[user] # Set the login url. # This is where users will be redirected to when they're unlogged. config.login_url = proc { login_path } # Logged users will be redirect to this url # when `before_action :redirect_logged_user` filter is used. config.logged_url = proc { dashboard_path } # Set the flash message key. # This will be used when setting messages for unlogged/unauthorized users. config.flash_message_key = :alert # Install SimpleAuth helpers to the controllers. config.install_helpers! end
Version data entries
3 entries across 3 versions & 1 rubygems