]> git.openstreetmap.org Git - rails.git/blobdiff - lib/potlatch.rb
Fix for #1565. Added a couple of tests and fixed another issue with re-used placehold...
[rails.git] / lib / potlatch.rb
index cf8f5903dde5fe72aae759155e5ef89b5273e6d6..ebafbce0086c809e5668899378bf3f4bbb456b85 100644 (file)
@@ -92,6 +92,10 @@ module Potlatch
         0.chr+encodedouble(n)
       when 'NilClass'
         5.chr
+         when 'TrueClass'
+        0.chr+encodedouble(1)
+         when 'FalseClass'
+        0.chr+encodedouble(0)
       else
         RAILS_DEFAULT_LOGGER.error("Unexpected Ruby type for AMF conversion: "+n.class.to_s)
       end