plataformatec/devise

View on GitHub

Showing 1 of 37 total issues

Consider simplifying this complex logical expression.
Open

        if Devise.activerecord51?
          def clear_reset_password_token?
            encrypted_password_changed = respond_to?(:will_save_change_to_encrypted_password?) && will_save_change_to_encrypted_password?
            authentication_keys_changed = self.class.authentication_keys.any? do |attribute|
              respond_to?("will_save_change_to_#{attribute}?") && send("will_save_change_to_#{attribute}?")
Severity: Major
Found in lib/devise/models/recoverable.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language