|
Revision 8118, 0.6 kB
(checked in by rick, 10 months ago)
|
initial experimental commit of active_model
|
| Line | |
|---|
| 1 |
Active Model |
|---|
| 2 |
============== |
|---|
| 3 |
|
|---|
| 4 |
Totally experimental library that aims to extract common model mixins from |
|---|
| 5 |
ActiveRecord for use in ActiveResource (and other similar libraries). |
|---|
| 6 |
This is in a very rough state (no autotest or spec rake tasks set up yet), |
|---|
| 7 |
so please excuse the mess. |
|---|
| 8 |
|
|---|
| 9 |
Here's what I plan to extract: |
|---|
| 10 |
* ActiveModel::Observing |
|---|
| 11 |
* ActiveModel::Callbacks |
|---|
| 12 |
* ActiveModel::Validations |
|---|
| 13 |
|
|---|
| 14 |
# for ActiveResource params and ActiveRecord options |
|---|
| 15 |
* ActiveModel::Scoping |
|---|
| 16 |
|
|---|
| 17 |
# to_json, to_xml, etc |
|---|
| 18 |
* ActiveModel::Serialization |
|---|
| 19 |
|
|---|
| 20 |
I'm trying to keep ActiveRecord compatibility where possible, but I'm |
|---|
| 21 |
annotating the spots where I'm diverging a bit. |
|---|