Upgrading to activegraph and got the error Unable to cast to type BigDecimal. Dug into the code and it appears that there is no type converter for BigDecimal in activegraph 10.0.0. The require statements are still there, it's simply missing the block of code.
The documentation still explicitly says that BigDecimal is a permitted type so, unless I'm missing something, it appears that one of the following needs to occur:
Type converter for BigDecimal needs to be added to lib/active_graph/shared/type_converters.rb and a test for the BigDecimal converter should be added; or
The documentation should be updated to indicate that BigDecimal is not a type in docs/Properties.rst and a note should be added to the upgrade guide docs/UpgradeGuide.rst
In addition, the error message in lib/active_graph/shared/typecasted_attributes.rb at line 71 should be updated to be something more along the lines of No TypeCaster for #{type} found. which better reflects the actual error.
Upgrading to activegraph and got the error
Unable to cast to type BigDecimal
. Dug into the code and it appears that there is no type converter forBigDecimal
in activegraph 10.0.0. Therequire
statements are still there, it's simply missing the block of code.The documentation still explicitly says that BigDecimal is a permitted type so, unless I'm missing something, it appears that one of the following needs to occur:
lib/active_graph/shared/type_converters.rb
and a test for the BigDecimal converter should be added; ordocs/Properties.rst
and a note should be added to the upgrade guidedocs/UpgradeGuide.rst
In addition, the error message in
lib/active_graph/shared/typecasted_attributes.rb
at line 71 should be updated to be something more along the lines ofNo TypeCaster for #{type} found.
which better reflects the actual error.