summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/param.rb
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-17 02:06:46 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-17 02:06:46 +0000
commitbeb78735f5ec4e7932c36dc7fdf9907ac770a938 (patch)
tree4424eb9d22d780d0e1740fafb3cc669d8af2501d /lib/puppet/rails/param.rb
parentf4f555d0ec405e215d1b2a44b18fee1c4fc2e0de (diff)
downloadpuppet-beb78735f5ec4e7932c36dc7fdf9907ac770a938.tar.gz
puppet-beb78735f5ec4e7932c36dc7fdf9907ac770a938.tar.xz
puppet-beb78735f5ec4e7932c36dc7fdf9907ac770a938.zip
Undo the param_name param_value merge
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2209 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails/param.rb')
-rw-r--r--lib/puppet/rails/param.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/puppet/rails/param.rb b/lib/puppet/rails/param.rb
deleted file mode 100644
index 108bc48d4..000000000
--- a/lib/puppet/rails/param.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-require 'puppet/util/rails/collection_merger'
-
-class Puppet::Rails::Param < ActiveRecord::Base
- include Puppet::Util::CollectionMerger
- belongs_to :resource
-
- def to_resourceparam(source)
- hash = {}
- hash[:name] = self.name.to_sym
- hash[:source] = source
- hash[:value] = self.value
- if hash[:value].length == 1
- hash[:value] = hash[:value].shift
- end
- if hash[:value].empty?
- hash[:value] = nil
- end
- Puppet::Parser::Resource::Param.new hash
- end
-end
-