Sha256: aa5a983ece83fe02162d816c5ae65b1c42e3ce0d74aff9e78659ada8b1b9e312
Contents?: true
Size: 369 Bytes
Versions: 18
Compression:
Stored size: 369 Bytes
Contents
module ForemanSalt class SaltModuleEnvironment < ApplicationRecord belongs_to :salt_environment belongs_to :salt_module before_destroy :remove_from_hosts private def remove_from_hosts HostSaltModule.joins(:host).where(:hosts => { :salt_environment_id => salt_environment_id }, :salt_module_id => salt_module_id).destroy end end end
Version data entries
18 entries across 18 versions & 1 rubygems