Skip to content

Compatibility with store_multiplied#18

Open
k41n wants to merge 1 commit intotechnoweenie:masterfrom
k41n:master
Open

Compatibility with store_multiplied#18
k41n wants to merge 1 commit intotechnoweenie:masterfrom
k41n:master

Conversation

@k41n
Copy link

@k41n k41n commented Jul 3, 2012

In case when field=() and field() methods are being redefined in versioned model, versioning does take it into consideration when reading and does not when writing into revision model. As result when working together with store_multiplied, acts_as_versioned reads integer value stored as micros in database as 900000 returned as 0.9 and stores it into integer field casting it to int as 0. When reverting we get 0 divided by million which equals 0. Better copy raw attributes IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments