class Devise::Strategies::Authenticatable

def params_authenticatable?

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