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