Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

Numeric nil type cast fix#5

Open
thedarkone wants to merge 2 commits intoelementar:masterfrom
thedarkone:numeric-nil-type-cast-fix
Open

Numeric nil type cast fix#5
thedarkone wants to merge 2 commits intoelementar:masterfrom
thedarkone:numeric-nil-type-cast-fix

Conversation

@thedarkone
Copy link

Had to re-do the whole approach, there is no need to override both AR::CA::Column#type_cast_for_write and AR::CA::Column#type_cast, instead only AR::CA::Column#type_cast_for_write with AR::Base#_field_changed? need to be patched.

@maintux can you also test it? I think the new code won't have any of the problems you were trying to fix in #2, #3 or #4.

We only should have to patch Column#type_cast_for_write and
AR#_field_changed?, while leaving Column#type_cast untouched.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant