Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Created August 11, 2015 07:05
Show Gist options
  • Save yamaaki/a9100aee6b30dc2a605c to your computer and use it in GitHub Desktop.
Save yamaaki/a9100aee6b30dc2a605c 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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment