Rails defines sum as well, and they do a more thorough job of it...
that is, they allow you to specify an Identity besides 0 (we could specify Flt::DecNum('0') for example)
the problem arises from Rails and Finance both trying to define sum on array, but with different signatures.
could we check to see if Array already responds to sum before defining it? or failing that, could we have sum take the same function signature so that the subclassing succeeds? as it is rails apps blow up when they require the finance gem.
I have redefined sum using method_missing so that it will no longer override other [better] implementations. Hopefully Finance now plays nicely with Rails.
Rails defines sum as well, and they do a more thorough job of it...
that is, they allow you to specify an Identity besides 0 (we could specify Flt::DecNum('0') for example)
the problem arises from Rails and Finance both trying to define sum on array, but with different signatures.
could we check to see if Array already responds to sum before defining it? or failing that, could we have sum take the same function signature so that the subclassing succeeds? as it is rails apps blow up when they require the finance gem.