Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rails 7.2 warnings #178

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading