AR convert module loader

This commit is contained in:
Ben Passmore
2019-11-03 08:00:51 +10:00
parent 91332844c8
commit 557452b95d

View File

@@ -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