Sha256: 9b8f7e522e41927e6c68513aa9251b2d9b7cb28c55940872a85a1c7ac5c0c4be
Contents?: true
Size: 521 Bytes
Versions: 19
Compression:
Stored size: 521 Bytes
Contents
class Mdm::Listener < ActiveRecord::Base # # Relations # belongs_to :task, :class_name => 'Mdm::Task' belongs_to :workspace, :class_name => 'Mdm::Workspace' # # Serializations # serialize :options, MetasploitDataModels::Base64Serializer.new # # Validations # validates :address, :ip_format => true, :presence => true validates :port, :presence => true, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535} ActiveSupport.run_load_hooks(:mdm_listener, self) end
Version data entries
19 entries across 19 versions & 1 rubygems