Revision eec062e6
Added by Ohad Levy almost 12 years ago
- ID eec062e660dcdf7126e3ce1ecc9f4a5f6e1a8cb3
app/models/compute_resource.rb | ||
---|---|---|
require 'fog_extensions'
|
||
class ComputeResource < ActiveRecord::Base
|
||
PROVIDERS = %w[ Libvirt Ovirt EC2 Vmware ].delete_if{|p| p == "Libvirt" && !SETTINGS[:libvirt]}
|
||
acts_as_audited :except => [:password]
|
||
audited :except => [:password]
|
||
|
||
# to STI avoid namespace issues when loading the class, we append Foreman::Model in our database type column
|
||
STI_PREFIX= "Foreman::Model"
|
Also available in: Unified diff
wip audits upgrade