Sha256: f31da82f71e194188c6e671520e7a347cc0c802276d89799eebecf68be95069d

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

# @deprecated Never populated by metasploit-framework.
#
# Module mixed into a {#detail Metasploit Module}.
class Mdm::Module::Mixin < ActiveRecord::Base
  self.table_name = 'module_mixins'

  #
  # Associations
  #

  # Metasploit Module the {#name named} `Module` was mixed in.
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  #
  # Attributes
  #

  # @!attribute name
  #   The `Module#name` of the mixed in `Module`.
  #
  #   @return [String]

  #
  # Mass Assignment Security
  #

  attr_accessible :name

  #
  # Validation
  #

  validates :detail, :presence => true
  validates :name, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.4 app/models/mdm/module/mixin.rb
metasploit_data_models-0.24.3 app/models/mdm/module/mixin.rb
metasploit_data_models-0.24.2 app/models/mdm/module/mixin.rb