You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# ActiveRecordCompose
2
2
3
3
ActiveRecordCompose lets you build form objects that combine multiple ActiveRecord models into a single, unified interface.
4
-
It makes complex updates - such as user registration forms spanning multiple tables - easier to write, validate, and maintain.
4
+
More than just a simple form object, it is designed as a **business-oriented composed model** that encapsulates complex operations-such as user registration spanning multiple tables-making them easier to write, validate, and maintain.
@@ -37,7 +37,7 @@ This mixes unrelated concerns into one model, leading to unnecessary complexity.
37
37
38
38
`ActiveModel::Model` helps here — it provides the familiar API (`attribute`, `errors`, validations, callbacks) without persistence, so you can isolate logic per use case.
39
39
40
-
**ActiveRecordCompose** builds on `ActiveModel::Model` and acts as a first-class model within Rails:
40
+
**ActiveRecordCompose** builds on `ActiveModel::Model` and is a powerful **business object** that acts as a first-class model within Rails.
41
41
- Transparently accesses attributes across multiple models
42
42
- Saves all associated models atomically in a transaction
43
43
- Collects and exposes error information consistently
@@ -80,10 +80,10 @@ You can compose them into one form object:
0 commit comments