Skip to content

Latest commit

 

History

History
105 lines (65 loc) · 2.69 KB

CHANGELOG.md

File metadata and controls

105 lines (65 loc) · 2.69 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

  • Pragma::Filter was moved to a separate pragma-filter project
  • Pragma::Macro was moved to a separate pragma-macro project
  • Pragma::Decorator::Error was moved to Pragma::Decorator
  • CRUD operations were moved to a separate pragma-resource project

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.