From 557452b95d257faf76f1cfd876589c088a787074 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Sun, 3 Nov 2019 08:00:51 +1000 Subject: [PATCH] AR convert module loader --- core/modules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules.rb b/core/modules.rb index 4994a121f..b94715ae3 100644 --- a/core/modules.rb +++ b/core/modules.rb @@ -48,7 +48,7 @@ module BeEF # Get all modules currently stored in the database # @return [Array] DataMapper array of all BeEF::Core::Models::CommandModule's in the database def self.get_stored_in_db - BeEF::Core::Models::CommandModule.all(:order => [:id.asc]) + BeEF::Core::Models::CommandModule.all.order(:id) end # Loads all enabled modules