Skip to content

Latest commit

 

History

History
109 lines (67 loc) · 2.92 KB

CHANGELOG.md

File metadata and controls

109 lines (67 loc) · 2.92 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.

Changed

Removed

  • Removed filtering functionality with no replacement (use Ransack or similar instead)

Added

  • Expose type property for API errors
  • Expanded associations are now eager-loaded automatically
  • Calling macros whose support classes are undefined will now raise a MissingSkillError

Fixed

  • Fixed computation of classes for nested operations

Added

  • Implemented Boolean scope
  • Added support for additional policy context via policy.context

Fixed

  • Added support for different capitalizations of API namespace
  • Fixed an issue where each filter would override the previous one

Added

  • Added support for Kaminari in Pagination macro

Changed

  • Dropped runtime dependency on will_paginate

Fixed

  • Fixed constant loading in Ruby 2.5

Added

  • Added ability to order by an association column
  • Implemented the action option for the Policy macro
  • Implemented the Where filter
  • Implemented the Scope filter

Changed

  • Pipetrees have been normalized to use strings and no exclamation marks
  • Move macros to Pragma::Macro namespace and provide BC-compatibility
  • Default name of Contract::Build steps is now contract.[name].build
  • Default name of Contract::Persist steps is now contract.[name].[method]

Fixed

  • Fixed handling of validation errors in Contract::Validate
  • Fixed handling of validation errors in Contract::Persist

Fixed

  • Fixed root-level model class computation

Added

  • Implemented expand.limit and expand.enabled
  • Implemented the Ordering macro
  • Implemented the Filtering macro

Fixed

  • Fixed automatic lookup of nested model classes

First Pragma 2 release.