Sha256: c071bccac02cd45ca10dd77e167e8ecb589a25abd7c8827d9ab0e78a6c955d35
Contents?: true
Size: 957 Bytes
Versions: 15
Compression:
Stored size: 957 Bytes
Contents
module Metasploit module Model module Search # Registers associations that can be searched. module Association extend ActiveSupport::Concern # Adds {#search_association} DSL to make {Metasploit::Model::Search::Operator::Association association search # operators}. module ClassMethods # Registers association for search. # # @param association [#to_sym] name of association to search. # @return [void] def search_association(association) search_association_set.add(association.to_sym) end # Set of all associations that are searchable. # # @example Adding association to search # search_association :things # # @return [Set<Symbol>] def search_association_set @search_association_set ||= Set.new end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems