Module: ForemanPuppet::PuppetLookupValueExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/foreman_puppet/puppet_lookup_value_extensions.rb
Instance Method Summary collapse
Instance Method Details
#value_present? ⇒ Boolean
9 10 11 |
# File 'app/models/concerns/foreman_puppet/puppet_lookup_value_extensions.rb', line 9 def value_present? errors.add(:value, :blank) if value.to_s.empty? && !omit end |