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