- Fix an issue in combination with the active_type gem, causing virtual models to always read nil on anchormodel attributes
- When serializing an Anchormodel to json, return the key
- Implement
YourConstant.first
as a shorthand forYourConstant.all.first
to avoid Rubocop problems
- Relax Rails dependency
- Allow passing
anchormodel_attribute
explicitely toanchormodel
input and enhance error message - In
anchormodel
input, fallback to searching selected value in input html options as well - Update ruby version to 3.2.2
- Stop enforcing include_blank for SimpleForm, due to heartcombo/simple_form#1427
- Add support for multiple anchormodels (
belongs_to_anchormodels
) - Implement YourAnchormodelclass.form_collection
- Enhance documentation
- Add support for simple_form
- Stick closer to the Rails API of Value
- Enhance testing
- Add Rails generator
- Consider empty string as nil (this is necessary to make Rails assignments work)
- Add boolean accessor directly to all anchormodels
- Add ActiveRecord::Enum style readers, writers and scopes to the model
- Attribute#anchor_class is now called
anchormodel_class
.
- Remove
Anchormodels::
prefix and have anchormodels in the root namespace instead. - Add basic testing
- Fix a bug where
.all
loaded entries from all classes.
- Initial release, MVP, early stage. Do not use.