bitzesty/devise_zxcvbn — pull request #9 by saizai (2014-12-30 21:13:15+00:00)
Title: Allow user to define more weak_words

In user model, just do this to define custom weak words:

def weak_words
[self.name, self.username, self.pet_name]
end

(Also, I've local-memoized the self.email & self.weak_words calls for efficiency.)