Refactored models to use ActiveRecord

This commit is contained in:
Ben Passmore
2019-10-08 16:15:55 +10:00
parent 4cecca4075
commit d588c56391
7 changed files with 14 additions and 101 deletions

View File

@@ -7,17 +7,10 @@ module BeEF
module Core
module Models
class Log
class Log < BeEF::Core::Model
has_one :hooked_browser
include DataMapper::Resource
storage_names[:default] = 'core_logs'
property :id, Serial
property :type, Text, :lazy => false
property :event, Text, :lazy => false
property :date, DateTime, :lazy => false
property :hooked_browser_id, Text, :lazy => false
end
end