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.
- Moved
Pragma::Decorator::Errorto pragma-decorator - Moved
Pragma::AssociationIncluderto pragma-decorator - Moved macros to pragma-resource
- Moved CRUD operations to pragma-resource
- Removed filtering functionality with no replacement (use Ransack or similar instead)
- Expose
typeproperty for API errors - Expanded associations are now eager-loaded automatically
- Calling macros whose support classes are undefined will now raise a
MissingSkillError
- Fixed computation of classes for nested operations
- Implemented
Booleanscope - Added support for additional policy context via
policy.context
- Added support for different capitalizations of API namespace
- Fixed an issue where each filter would override the previous one
- Added support for Kaminari in
Paginationmacro
- Dropped runtime dependency on will_paginate
- Fixed constant loading in Ruby 2.5
- Added ability to order by an association column
- Implemented the
actionoption for thePolicymacro - Implemented the
Wherefilter - Implemented the
Scopefilter
- Pipetrees have been normalized to use strings and no exclamation marks
- Move macros to
Pragma::Macronamespace and provide BC-compatibility - Default name of
Contract::Buildsteps is nowcontract.[name].build - Default name of
Contract::Persiststeps is nowcontract.[name].[method]
- Fixed handling of validation errors in
Contract::Validate - Fixed handling of validation errors in
Contract::Persist
- Fixed root-level model class computation
- Implemented
expand.limitandexpand.enabled - Implemented the
Orderingmacro - Implemented the
Filteringmacro
- Fixed automatic lookup of nested model classes
First Pragma 2 release.