Skip to content

@blazetrails/activemodel ​

Attributes, validations, callbacks, and serialization, mirroring Ruby's ActiveModel

MeasureValue
Rails counterpartactivemodel v8.0.5.2
API methods matched100% (821 of 821)
Rails tests matched100% (637 of 637) (4 permanent)
Ruby files ported68
Ruby files unported0
Measured atfe89b44726

Gaps by file ​

No gaps recorded for this package.

Missing methods ​

None recorded for this package.

Unported Ruby files ​

Every compared Ruby file has a TypeScript file.

Deviation receipts ​

JSDoc receipt tags in the package's source, by the receipt each carries.

TagPERMANENTCONVERGEABLEnone
@noRailsEquivalent1120
@missingRailsCall100
@missingRailsArgs100
@missingRailsName800
@inventedArm1900
@perf300
@inlinedFrom003
@internal00236

Permanently skipped tests ​

Ruby Strings are JS string primitives (no mutable String carrier) (4)

Ratified deviations ​

Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.

Ruby Strings are JS string primitives (no mutable String carrier) ​

A Ruby String is a mutable object with identity. str << "x" and str.replace("y") change the receiver in place, str.dup is a second object with the same content, and frozen? is a per-object fact. ActiveModel leans on all three:

CLAUDE.md →

Serialization's dual sync/async hash (serializable_hash / as_json) ​

Ruby's serializable_add_includes (activemodel/lib/active_model/serialization.rb:191) reads an association synchronously — if records = send(association) — and CollectionProxy#to_ary lazily loads it in-line at serialization.rb:143. In trails an association read is async, so an include:-bearing serializable_hash cannot be fully synchronous.

packages/activemodel/CLAUDE.md →

Source ​

packages/activemodel on GitHub →