Sha256: fe9b199d8179f82fde4d0887707e60a2d759877b350651b8e3e1be85ae608cc9
Contents?: true
Size: 650 Bytes
Versions: 35
Compression:
Stored size: 650 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_one :config # 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 User.as_anonymous_admin do self.user.login if self.user end end end end
Version data entries
35 entries across 35 versions & 1 rubygems