Sha256: 88429b4a79466ff791183ec357ca3af6cfa892170f62b3bd3c1f177beb048eb5
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
class TemplateInvocationInputValue < ActiveRecord::Base belongs_to :template_invocation belongs_to :template_input validates :value, :presence => true, :if => proc { |v| v.template_input.required? } validates :value, :inclusion => { :in => proc { |v| v.template_input.options_array } }, :if => proc { |v| v.template_input.input_type == 'user' && v.template_input.options_array.present? } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_remote_execution-0.0.6 | app/models/template_invocation_input_value.rb |
foreman_remote_execution-0.0.5 | app/models/template_invocation_input_value.rb |