# File lib/puppet/util/rails/reference_serializer.rb, line 16
16:     def serialize_value(val)
17:         case val
18:         when Puppet::Parser::Resource::Reference
19:             YAML.dump(val)
20:         when true, false
21:             # The database does this for us, but I prefer the
22:             # methods be their exact inverses.
23:             # Note that this means quoted booleans get returned
24:             # as actual booleans, but there doesn't appear to be
25:             # a way to fix that while keeping the ability to
26:             # search for parameters set to true.
27:             val.to_s
28:         else
29:             val
30:         end
31:     end