README.md in store_model-0.11.1 vs README.md in store_model-0.12.0
- old
+ new
@@ -77,9 +77,14 @@
product.configuration.color = "red"
end
product.save
```
+_Usage note: Rails and assigning Arrays/Hashes to records_
+
+- Assigned attributes must be a String, Hash, Array of Hashes, or StoreModel. For example, if the attributes are coming from a controller, be sure to convert any ActionController::Parameters as needed.
+- Any changes made to a StoreModel instance requires the attribute be re-assigned; Rails doesn't track mutations of objects. For example: `self.my_stored_models = my_stored_models.map(&:as_json)`
+
## Documentation
1. [Installation](./docs/installation.md)
2. StoreModel::Model API:
* [Validations](./docs/validations.md)