Sha256: 0dfc8d2d932755a79998da465ea8897f793d9a047e9f6d409509cd9e8a53c98d

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

class Mdm::ModuleMixin < ActiveRecord::Base
  self.table_name = 'module_mixins'

  #
  # Associations
  #

  belongs_to :module_detail, :class_name => 'Mdm::ModuleDetail'

  #
  # Mass Assignment Security
  #

  attr_accessible :name

  #
  # Validation
  #

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

  ActiveSupport.run_load_hooks(:mdm_module_mixin, self)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit_data_models-0.7.0 app/models/mdm/module_mixin.rb
metasploit_data_models-0.7.0-java app/models/mdm/module_mixin.rb
metasploit_data_models-0.6.16 app/models/mdm/module_mixin.rb
metasploit_data_models-0.6.14 app/models/mdm/module_mixin.rb
metasploit_data_models-0.6.13 app/models/mdm/module_mixin.rb