Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Created January 12, 2015 14:11
Show Gist options
  • Save jlsherrill/921cf5b094addf8fdda4 to your computer and use it in GitHub Desktop.
Save jlsherrill/921cf5b094addf8fdda4 to your computer and use it in GitHub Desktop.
diff --git a/app/models/host/managed.rb b/app/models/host/managed.rb
index b2a718b..117c306 100644
--- a/app/models/host/managed.rb
+++ b/app/models/host/managed.rb
@@ -121,7 +121,7 @@ class Host::Managed < Host::Base
scope :for_vm, lambda { |cr,vm| where(:compute_resource_id => cr.id, :uuid => Array.wrap(vm).compact.map(&:ide
# audit the changes to this model
- audited :except => [:last_report, :puppet_status, :last_compile], :allow_mass_assignment => true
+ audited :except => [:last_report, :puppet_status, :last_compile, :primary_interface], :allow_mass_assignment =
has_associated_audits
# some shortcuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment