All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
Pragma::Decorator::Error
, which was previously in pragma - Added
Pragma::Decorator::Association::Expander
, which was previously in pragma
- Switch to Zeitwerk for autoloading
Collection
now assumes the instance decorator isInstance
- Fixed an issue with association definition
2.2.5 (yanked)
- Fixed the expansion of associations with custom names requiring the original name to be used
- Fixed an issue where expanding a property would expand properties with the same name in associated objects
- Fixed an issue with the loading of polymorphic associations
- Fixed an issue causing the PORO adapter to be loaded for all models
- Use Adaptor for association and pagination adpators
- Added support for custom pagination adapters
- Implemented STI support in
Collection
- Renamed
Pagination#adapter
to#pagination_adapter
Type
now replaces::
with/
- Fixed AR association adapter not working with custom scopes
- Fixed AR association adapter not working with
has_one
- Fixed associations inheritance
- Fixed association expansion for non-AR associations defined on AR models
- Fixed ActiveRecord association adapter
- Added support for
:as
intimestamp
properties user_options
are now forwarded to expanded associations- Made associations ORM-independent with the Adapter API
- Implemented the Type Overrides API
- Implemented the Pagination Adapter API
- Changed the
#type
of collections fromcollection
tolist
- Replaced
feature
withinclude
in tests and examples
- Fixed
type
property not returninglist
for instances ofActiveRecord::Relation
- Fixed bugs with the optimization of associations with custom scopes
First Pragma 2 release.