Skip to content

Commit

Permalink
Fix rails 7.2 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Jan 4, 2024
1 parent ee504d5 commit f443a21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/metasploit/credential/krb_enc_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down
2 changes: 1 addition & 1 deletion app/models/metasploit/credential/ntlm_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/models/metasploit/credential/postgres_md5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand All @@ -34,4 +34,4 @@ def data_format

Metasploit::Concern.run(self)

end
end

0 comments on commit f443a21

Please sign in to comment.