Skip to content

Commit 2041870

Browse files
committed
Update ActiveRecord syntax for framework db credential iteration
1 parent 9862a2f commit 2041870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db_manager/cred.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Msf::DBManager::Cred
22
# This methods returns a list of all credentials in the database
33
def creds(wspace=workspace)
44
::ActiveRecord::Base.connection_pool.with_connection {
5-
Mdm::Cred.includes({:service => :host}).where("hosts.workspace_id = ?", wspace.id)
5+
Mdm::Cred.where("hosts.workspace_id = ?", wspace.id).joins(:service => :host)
66
}
77
end
88

0 commit comments

Comments
 (0)