plataformatec/devise — Issue #1584: Allow for encryptor: :bcrypt
Author: masterkain
Created: 2012-01-19 19:02:04+00:00
State: open

I have a use case where I should keep compatibility with a previous authentication system (clearance).

However I have a single, particular model, for which I'd like to use bcrypt.

In `encryptable.rb`we see:

def encryptor_class
@encryptor_class ||= case encryptor
when :bcrypt
raise "In order to use bcrypt as encryptor, simply remove :encryptable from your devise model"

The problem is that if I remove the :encryptable module altogether it will fallback to `:clearance_sha1`.

Thoughts?