I’m new to the Ruby bandwagon. To get warmed up I’ve took on the gentle
of modifiying the PostgreSQL Rails adapter to read and write decimals as
BigDecimals. Oops bad choice I’m still working on that though, so I
won’t post the half-baked patch yet.
Anyway the immediate issue I have is actually simple. Late last night I
managed to get it reading BigDecimals, but my test case was trying to
to_d on the objects I was getting back. Can’t remember why (it was late
brain was fried), but I had to open the class and add it in (return
This seems like a strange omission from the BigDecimal class. Anyone
there’s a reason for that? If not could it be added in? I’m scared to
it because it’s a C library.