# File lib/puppet/rails/param_name.rb, line 12
12:     def to_resourceparam(resource, source)
13:         hash = {}
14:         hash[:name] = self.name.to_sym
15:         hash[:source] = source
16:         hash[:value] = resource.param_values.find(:all, :conditions => [ "param_name_id = ?", self.id]).collect { |v| v.value }
17:         if hash[:value].length == 1
18:             hash[:value] = hash[:value].shift
19:         elsif hash[:value].empty?
20:             hash[:value] = nil
21:         end
22:         Puppet::Parser::Resource::Param.new hash
23:     end