Module: PuppetLookupValueExtensions

Extended by:
ActiveSupport::Concern
Included in:
LookupValue
Defined in:
app/models/concerns/puppet_lookup_value_extensions.rb

Instance Method Summary collapse

Instance Method Details

#value_present?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'app/models/concerns/puppet_lookup_value_extensions.rb', line 8

def value_present?
  errors.add(:value, :blank) if value.to_s.empty? && !omit && lookup_key.puppet?
end