Sha256: ecb28c993060c97063ec79f286308714dea87f9b990a0519350108d91c8b1da4
Contents?: true
Size: 616 Bytes
Versions: 5
Compression:
Stored size: 616 Bytes
Contents
class Mdm::Listener < ActiveRecord::Base # # Relations # belongs_to :task, class_name: 'Mdm::Task', inverse_of: :listeners belongs_to :workspace, class_name: 'Mdm::Workspace', inverse_of: :listeners # # 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
5 entries across 5 versions & 1 rubygems