ActiveModelChangeset provides a lightweight changeset abstraction for Ruby on Rails applications. It combines type casting, attribute normalization, validation and diff calculation into a single object, enabling safe and explicit create/update operations with patch semantics. The gem is designed for service objects and APIs, allowing developers to whitelist attributes, apply transformations, validate input and update models using only changed values, without relying on ActiveRecord callbacks or controllers.

Required Ruby Version

>= 3.2.0

Authors

Alef ojeda de Oliveira

Versions

  1. 0.1.0 January 16, 2026 (12 KB)

Pushed by

SHA 256 checksum