class Devise::Strategies::Authenticatable

def http_authenticatable?

Check if the model accepts this strategy as http authenticatable.
def http_authenticatable?
  mapping.to.http_authenticatable?(authenticatable_name)
end