Closed graft closed 9 years ago
Our fault. There had been capitalize
in another place when I came a collaborator. Should be camelcase
instead in that place and others.
Fixed in https://github.com/jackdempsey/sequel_polymorphic/commit/9c400a10afcf6468694e5439822dd8cd9934b72b.
@graft, @Draiken, @nazipov, can you check if your code work using master
branch, please?
@kuraga Yes, it works!
@kuraga works for me, thanks for the quick update!
Released v0.2.2
.
The latest commit (e35f52844295c315ade7f40620697da474b6e24c) breaks my associations (although it fixed my issue with 'constantize', which is good); I have a column type that is camel-cased (i.e., clinical_type: "ClinicalColorectal"). Calling capitalize on this value results in incorrect behavior, and the association fails because it cannot find a class named "Clinicalcolorectal". I'm not sure why it should be necessary to transform able_type when loading - surely this column should be written with the exact class name?