summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorsteve mcintosh <stevemac@endpoint.com>2009-04-09 16:10:23 -0400
committerJames Turnbull <james@lovedthanlost.net>2009-04-22 14:39:39 +1000
commitbdbf9db5f0c0d30e554f274591b24692b866ca29 (patch)
tree20c5c2ac9238380b365762e34fd976581bc1a4c8 /lib/puppet
parent2e62507a81dc5c497be302b77fe368c6387a2f40 (diff)
downloadpuppet-bdbf9db5f0c0d30e554f274591b24692b866ca29.tar.gz
puppet-bdbf9db5f0c0d30e554f274591b24692b866ca29.tar.xz
puppet-bdbf9db5f0c0d30e554f274591b24692b866ca29.zip
Added class_name tags to has_many relationships
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/rails/host.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb
index 3e63e7600..2d00fa72b 100644
--- a/lib/puppet/rails/host.rb
+++ b/lib/puppet/rails/host.rb
@@ -10,10 +10,10 @@ class Puppet::Rails::Host < ActiveRecord::Base
include Puppet::Util
include Puppet::Util::CollectionMerger
- has_many :fact_values, :dependent => :destroy
- has_many :fact_names, :through => :fact_values
+ has_many :fact_values, :dependent => :destroy, :class_name => "Puppet::Rails::FactValue"
+ has_many :fact_names, :through => :fact_values, :class_name => "Puppet::Rails::FactName"
belongs_to :source_file
- has_many :resources, :dependent => :destroy
+ has_many :resources, :dependent => :destroy, :class_name => "Puppet::Rails::Resource"
# If the host already exists, get rid of its objects
def self.clean(host)