Skip to content

Commit 6d8dd24

Browse files
committed
Land rapid7#7104, Update ActiveRecord syntax for framework db cred iteration
2 parents 01c5662 + 2041870 commit 6d8dd24

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)