Sha256: f54ff12e6e5d00bacb1f5df0c0a2bda13c2b0acb5fa0f1cd52718e13a46a1a76
Contents?: true
Size: 429 Bytes
Versions: 17
Compression:
Stored size: 429 Bytes
Contents
class JobTemplateEffectiveUser < ActiveRecord::Base 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
17 entries across 17 versions & 1 rubygems