Sha256: a8ab270049c6c45b4a2b6f0c988f886e85e6b3a648d6a5840a501301e9dd828d
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
module ForemanVirtWhoConfigure # holds the encrypted password for internal user that can be deployed to virt who reporter class ServiceUser < ActiveRecord::Base include Authorizable include Encryptable encrypts :encrypted_password belongs_to :user has_many :configs # Foreman 1.11 specifics, can be removed later, otherwise when string does not start with "encrypts" prefix # we get 500 when we try to create log message that relies on name method def name self.username || self.to_s end def username self.user.login if self.user end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_virt_who_configure-0.0.1 | app/models/foreman_virt_who_configure/service_user.rb |