Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Created August 11, 2015 08:09
Show Gist options
  • Save yamaaki/36ffd7ce8e7e7e8e8b1a to your computer and use it in GitHub Desktop.
Save yamaaki/36ffd7ce8e7e7e8e8b1a to your computer and use it in GitHub Desktop.
Devise.setup do |config|
require 'devise/orm/active_record'
config.mailer_sender = '[email protected]'
config.case_insensitive_keys = [:email]
config.strip_whitespace_keys = [:email]
config.skip_session_storage = [:http_auth]
config.stretches = Rails.env.test? ? 1 : 10
config.reconfirmable = true
config.expire_all_remember_me_on_sign_out = true
config.password_length = 8..72
config.reset_password_within = 6.hours
config.sign_out_via = :delete
config.scoped_views = true
config.sign_out_all_scopes = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment