Sha256: fa36dbd3f47200b5d49b259f0e585882d7d805c6a079ae29953945809c71156a

Contents?: true

Size: 778 Bytes

Versions: 5

Compression:

Stored size: 778 Bytes

Contents

# Use this file to setup SimpleAuth.
SimpleAuth.setup do |config|
  # Set which attributes will be used for authentication.
  config.credentials = [:email, :login]

  # Set the login url.
  config.login_url = proc { login_path }

  # Logged users will be redirect to this url
  # when +redirect_logged_user+ helper is used.
  config.logged_url = proc { root_path }

  # Automatically remove all session values that start with your model name.
  #
  # When an existing session is destroyed or a new session is created,
  # SimpleAuth will remove the record id stored as <tt>#{SimpleAuth::Config.model}</tt>.
  #
  # Additionally, you can enable this option to remove any other key composed by
  # <tt>#{SimpleAuth::Config.model}_*</tt>.
  #
  # config.wipeout_session = true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_auth-2.0.4 templates/initializer.rb
simple_auth-2.0.3 templates/initializer.rb
simple_auth-2.0.2 templates/initializer.rb
simple_auth-2.0.1 templates/initializer.rb
simple_auth-2.0.0 templates/initializer.rb