Posted 9 days ago. Visible to the public. Auto-destruct in 52 days

ActiveType 2.0 released

We released Active Type Archive 2.0 with breaking changes:

  1. Casting is prevented when the base record has changes in its already loaded associations, because those would be lost. Option force: true can be used to override this and still do the cast (this is not recommended).

  2. After casting, the base record will not be usable any more. The base record and the newly created casted record share state which is unexpected. Option force: true can be used to override this, so the base record is still usable (this is not recommended).

Example for the force: true option:

sign_up = ActiveType.cast(user, SignUp, force: true)
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Judith Roth
Last edit:
8 days ago
by Judith Roth
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Judith Roth to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more