From f443a21bda4a25d749f901cf4d01aad0f14c784e Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Thu, 4 Jan 2024 18:09:16 +0000 Subject: [PATCH] Fix rails 7.2 warnings --- app/models/metasploit/credential/krb_enc_key.rb | 2 +- app/models/metasploit/credential/ntlm_hash.rb | 2 +- app/models/metasploit/credential/postgres_md5.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/metasploit/credential/krb_enc_key.rb b/app/models/metasploit/credential/krb_enc_key.rb index cae6c67..e4de30c 100644 --- a/app/models/metasploit/credential/krb_enc_key.rb +++ b/app/models/metasploit/credential/krb_enc_key.rb @@ -73,7 +73,7 @@ class Metasploit::Credential::KrbEncKey < Metasploit::Credential::PasswordHash # Callbacks # - serialize :data, Metasploit::Credential::CaseInsensitiveSerializer + serialize :data, coder: Metasploit::Credential::CaseInsensitiveSerializer validates_uniqueness_of :data, :case_sensitive => false # diff --git a/app/models/metasploit/credential/ntlm_hash.rb b/app/models/metasploit/credential/ntlm_hash.rb index 4216d86..726c0af 100644 --- a/app/models/metasploit/credential/ntlm_hash.rb +++ b/app/models/metasploit/credential/ntlm_hash.rb @@ -60,7 +60,7 @@ class Metasploit::Credential::NTLMHash < Metasploit::Credential::ReplayableHash # 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 + serialize :data, coder: Metasploit::Credential::CaseInsensitiveSerializer # # Validations diff --git a/app/models/metasploit/credential/postgres_md5.rb b/app/models/metasploit/credential/postgres_md5.rb index 58e5b21..1ed05bd 100644 --- a/app/models/metasploit/credential/postgres_md5.rb +++ b/app/models/metasploit/credential/postgres_md5.rb @@ -13,7 +13,7 @@ class Metasploit::Credential::PostgresMD5 < Metasploit::Credential::ReplayableHa # Callbacks # - serialize :data, Metasploit::Credential::CaseInsensitiveSerializer + serialize :data, coder: Metasploit::Credential::CaseInsensitiveSerializer validates_uniqueness_of :data, :case_sensitive => false # @@ -34,4 +34,4 @@ def data_format Metasploit::Concern.run(self) -end \ No newline at end of file +end