Sha256: d63b82528b1389c5bdbbc24eb2ae2317f01ab997b5032db4114dd1209dcd4757
Contents?: true
Size: 835 Bytes
Versions: 5
Compression:
Stored size: 835 Bytes
Contents
# Gathers all the association names to pass to `ActiveRecord::Relation#includes` from a # `Metasploit::Model::Search::Query` class MetasploitDataModels::Search::Visitor::Includes include Metasploit::Model::Visitation::Visit # # Visitors # visit 'Metasploit::Model::Search::Group::Base', 'Metasploit::Model::Search::Operation::Group::Base' do |parent| parent.children.flat_map { |child| visit child } end visit 'Metasploit::Model::Search::Operation::Base' do |operation| visit operation.operator end visit 'Metasploit::Model::Search::Operator::Association' do |operator| [operator.association] end visit 'Metasploit::Model::Search::Operator::Attribute', 'MetasploitDataModels::Search::Operator::Port::List' do |_operator| [] end Metasploit::Concern.run(self) end
Version data entries
5 entries across 5 versions & 1 rubygems