class Devise::Strategies::Authenticatable

def authenticatable_name

becomes simply :database.
Holds the authenticatable name for this class. Devise::Strategies::DatabaseAuthenticatable
def authenticatable_name
  @authenticatable_name ||=
    ActiveSupport::Inflector.underscore(self.class.name.split("::").last).
      sub("_authenticatable", "").to_sym
end