Sha256: 2a7caa361df51aea6e991cc4b07d4a04c09d7f0273ace5014fcf4db15a388e10
Contents?: true
Size: 428 Bytes
Versions: 143
Compression:
Stored size: 428 Bytes
Contents
class JobTemplateEffectiveUser < ApplicationRecord belongs_to :job_template before_validation :set_defaults def set_defaults self.overridable = true if self.overridable.nil? self.current_user = false if self.current_user.nil? end def compute_value if current_user? User.current.login elsif value.present? value else Setting[:remote_execution_effective_user] end end end
Version data entries
143 entries across 143 versions & 1 rubygems