Decorators on top of your ORM layer.

22-Apr-2021 1075
Disposable is the missing API of ActiveRecord*. The mission:Maintain a manipulatable object graph that is a copy/map of a persistent structure.Prevent any write to the persistence layer until you say sync.Help designing your domain layer without being restricted to database layouts (renaming, compositions, hash fields).Provide additional behavior like change tracking, imperative callbacks and collection semantics.Disposable gives you "Twins": non-persistent domain objects. That is reflected in the name of the gem. They can read from and write values to a persistent object and abstract the persistence layer until data is synced to the model.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle