Fix Master - Pro build

MSP-12138

* revert to previous Rails 3 syntax.
bug/bundler_fix
Sonny Gonzalez 2015-02-11 12:02:34 -06:00
parent 73435c6d1c
commit 7c57b9fb57
No known key found for this signature in database
GPG Key ID: 578097F7CA93BCE5
1 changed files with 4 additions and 4 deletions

View File

@ -166,9 +166,9 @@ module Msf::DBManager::Host
end
if opts[:comm] and opts[:comm].length > 0
host = wspace.hosts.where(address: addr, comm: opts[:comm]).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address_and_comm(addr, opts[:comm])
else
host = wspace.hosts.where(address: addr).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address(addr)
end
else
host = addr
@ -257,9 +257,9 @@ module Msf::DBManager::Host
end
if opts[:comm] and opts[:comm].length > 0
host = wspace.hosts.where(address: addr, comm: opts[:comm]).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address_and_comm(addr, opts[:comm])
else
host = wspace.hosts.where(address: addr).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address(addr)
end
else
host = addr