Returns the class for the configured encryptor.
# File lib/devise/encryptable/model.rb, line 69 def encryptor_class @encryptor_class ||= case encryptor when :bcrypt raise "In order to use bcrypt as encryptor, simply remove :encryptable from your devise model" when nil raise "You need to give an :encryptor as option in order to use :encryptable" else Devise::Encryptable::Encryptors.const_get(encryptor.to_s.classify) end end
Generated with the Darkfish Rdoc Generator 2.