Sha256: 0e93b260faf514415d8a3ac2cb92e234681846e9ba30c971af9b8c7a33702e4a
Contents?: true
Size: 422 Bytes
Versions: 79
Compression:
Stored size: 422 Bytes
Contents
class InvocationProviderInputValue < ApplicationRecord belongs_to :template_invocation validates :name, :presence => true validates :value, :inclusion => { :in => proc { |v| v.provider_input.options_array } }, :if => proc { |v| v.provider_input.options_array.present? } def provider_input template_invocation.template.provider.provider_inputs.find { |item| item.name == name } end end
Version data entries
79 entries across 79 versions & 1 rubygems