plataformatec/devise — pull request #2860 by sbounmy (2014-02-11 14:44:29+00:00)
Title: allow customized password length validation

Allow to use dynamic settings in Devise.setup, this is useful for multitenant app, example :
in initializers/devise.rb
{code}
Devise.setup do |config|
config.password_length = Proc.new { Company.current.try(:password_regex) }
end
{code}