app/models/metasploit/credential/ntlm_hash.rb in metasploit-credential-6.0.9 vs app/models/metasploit/credential/ntlm_hash.rb in metasploit-credential-6.0.10

- old
+ new

@@ -58,10 +58,14 @@ # Serializers # # Hash results are always downcased when stored in the database # This serializer allows for ORM to search in a case-insensitive - serialize :data, Metasploit::Credential::CaseInsensitiveSerializer + if ActiveRecord::VERSION::MAJOR >= 7 && ActiveRecord::VERSION::MINOR >= 1 + serialize :data, coder: Metasploit::Credential::CaseInsensitiveSerializer + else + serialize :data, Metasploit::Credential::CaseInsensitiveSerializer + end # # Validations #