Skip to content

Latest commit

 

History

History
124 lines (76 loc) · 3.28 KB

CHANGELOG.md

File metadata and controls

124 lines (76 loc) · 3.28 KB

Changelog

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

  • Added Pragma::Decorator::Error, which was previously in pragma
  • Added Pragma::Decorator::Association::Expander, which was previously in pragma

Changed

  • Switch to Zeitwerk for autoloading

Added

  • Collection now assumes the instance decorator is Instance

Fixed

  • Fixed an issue with association definition

2.2.5 (yanked)

Fixed

  • Fixed the expansion of associations with custom names requiring the original name to be used

Fixed

  • Fixed an issue where expanding a property would expand properties with the same name in associated objects

Fixed

  • Fixed an issue with the loading of polymorphic associations

Fixed

  • Fixed an issue causing the PORO adapter to be loaded for all models

Changed

  • Use Adaptor for association and pagination adpators

Added

  • Added support for custom pagination adapters
  • Implemented STI support in Collection

Changed

  • Renamed Pagination#adapter to #pagination_adapter
  • Type now replaces :: with /

Fixed

  • 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

  • Fixed ActiveRecord association adapter

Added

  • Added support for :as in timestamp 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

  • Changed the #type of collections from collection to list
  • Replaced feature with include in tests and examples

Fixed

  • Fixed type property not returning list for instances of ActiveRecord::Relation
  • Fixed bugs with the optimization of associations with custom scopes

First Pragma 2 release.