Sha256: 10466110f6831823b0ad269172b2f919782a733ffe0b6fed5a8b62996f9f0e5d
Contents?: true
Size: 1.05 KB
Versions: 52
Compression:
Stored size: 1.05 KB
Contents
class Mdm::User < ActiveRecord::Base extend MetasploitDataModels::SerializedPrefs # # Relations # has_many :owned_workspaces, class_name: 'Mdm::Workspace', foreign_key: 'owner_id', inverse_of: :owner has_many :tags, class_name: 'Mdm::Tag', inverse_of: :user has_and_belongs_to_many :workspaces, :join_table => 'workspace_members', :uniq => true, :class_name => 'Mdm::Workspace' # # Serialziations # serialize :prefs, MetasploitDataModels::Base64Serializer.new serialized_prefs_attr_accessor :nexpose_host, :nexpose_port, :nexpose_user, :nexpose_pass, :nexpose_creds_type, :nexpose_creds_user, :nexpose_creds_pass serialized_prefs_attr_accessor :http_proxy_host, :http_proxy_port, :http_proxy_user, :http_proxy_pass serialized_prefs_attr_accessor :time_zone, :session_key serialized_prefs_attr_accessor :last_login_address # specifically NOT last_login_ip to prevent confusion with AuthLogic magic columns (which dont work for serialized fields) Metasploit::Concern.run(self) end
Version data entries
52 entries across 52 versions & 1 rubygems