summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-25 14:11:14 -0500
committerLuke Kanies <luke@madstop.com>2007-09-25 14:11:14 -0500
commit8ec60118684fc32b65ce70ccfc009e07b7e6a3cd (patch)
treef6e2b1adcbefb25672ef7cc8b9070d654978dac0 /lib/puppet/rails
parent2e3306143b1f58765f48911ba433a119de323b84 (diff)
parentab1b0344da8faf8d94a363ba4a64e0238845828a (diff)
downloadpuppet-8ec60118684fc32b65ce70ccfc009e07b7e6a3cd.tar.gz
puppet-8ec60118684fc32b65ce70ccfc009e07b7e6a3cd.tar.xz
puppet-8ec60118684fc32b65ce70ccfc009e07b7e6a3cd.zip
Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppet into indirection
Diffstat (limited to 'lib/puppet/rails')
-rw-r--r--lib/puppet/rails/param_name.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/rails/param_name.rb b/lib/puppet/rails/param_name.rb
index d704693c4..95669264c 100644
--- a/lib/puppet/rails/param_name.rb
+++ b/lib/puppet/rails/param_name.rb
@@ -9,7 +9,7 @@ class Puppet::Rails::ParamName < ActiveRecord::Base
hash = {}
hash[:name] = self.name.to_sym
hash[:source] = source
- hash[:value] = resource.param_values.find(:all, :conditions => [ "param_name_id = ?", self]).collect { |v| v.value }
+ hash[:value] = resource.param_values.find(:all, :conditions => [ "param_name_id = ?", self.id]).collect { |v| v.value }
if hash[:value].length == 1
hash[:value] = hash[:value].shift
elsif hash[:value].empty?