I'm in a model callback (after_save) and one of the attributes is BigDecimal type. So when I change another attribute and check dirty attributes with changes
method I have this:
{"amount"=>[#<BigDecimal:7f86aa3ac900,'-0.4E3',9(18)>, #<BigDecimal:7f86aa3ac838,'-0.4E3',9(18)>], "description"=>["vvvv", "ccc"]}
It instantiates amount as BigDecimal and takes object_id as part of the changes.
Has anyone an idea of how to avoid this behaviour?