Module: ForemanOmaha::HostExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/foreman_omaha/host_extensions.rb
Instance Method Summary collapse
Instance Method Details
#clear_omaha_facet ⇒ Object
18 19 20 |
# File 'app/models/concerns/foreman_omaha/host_extensions.rb', line 18 def clear_omaha_facet omaha_facet&.destroy end |
#clear_omaha_facet_on_build ⇒ Object
22 23 24 25 26 |
# File 'app/models/concerns/foreman_omaha/host_extensions.rb', line 22 def clear_omaha_facet_on_build return unless respond_to?(:old) && old && build? && !old.build? clear_omaha_facet end |