From: steve mcintosh <[email protected]>
Signed-off-by: Luke Kanies <[email protected]> --- lib/puppet/rails/host.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb index 3e63e76..2d00fa7 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) -- 1.6.1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
