class Devise::PasswordsController
def unlockable?(resource)
Check if proper Lockable module methods are present & unlock strategy
def unlockable?(resource) resource.respond_to?(:unlock_access!) && resource.respond_to?(:unlock_strategy_enabled?) && resource.unlock_strategy_enabled?(:email) end