From 88c488969e24da044fb6cd9c3027f85a838082d1 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Sun, 3 Nov 2019 07:59:59 +1000 Subject: [PATCH] AR convert command --- core/main/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/main/command.rb b/core/main/command.rb index 116da56f1..e4e0778c7 100644 --- a/core/main/command.rb +++ b/core/main/command.rb @@ -179,7 +179,7 @@ module BeEF return end - command = BeEF::Core::Models::Command.first(:id => @command_id) + command = BeEF::Core::Models::Command.find(@command_id) @eruby = Erubis::FastEruby.new(File.read(f)) @@ -237,7 +237,7 @@ module BeEF # @todo TODO Document def oc_value(name) - option = BeEF::Core::Models::OptionCache.first(:name => name) + option = BeEF::Core::Models::OptionCache.where(:name => name).first return nil unless option option.value end