Pundit v2.1.1 Release Notes

Release Date: 2021-08-13 // over 2 years ago
  • ๐Ÿš€ Friday 13th-release!

    ๐Ÿ›  Careful! The bugfix below (#626) could break existing code. If you rely on the return value for authorize and namespaced policies you might need to do some ๐Ÿ”„ changes.

    ๐Ÿ›  Fixed

    • .authorize and #authorize return the instance, even for namespaced policies (#626)

    ๐Ÿ”„ Changed

    • Generate application scope with protected attr_readers. (#616)

    โœ‚ Removed

    • โฌ‡๏ธ Dropped support for Ruby end-of-life versions: 2.1 and 2.2. (#604)
    • โฌ‡๏ธ Dropped support for Ruby end-of-life versions: 2.3 (#633)
    • โฌ‡๏ธ Dropped support for Ruby end-of-life versions: 2.4, 2.5 and JRuby 9.1 (#676)
    • โฌ‡๏ธ Dropped support for RSpec 2 (#615)

Previous changes from v2.1.0

  • ๐Ÿ›  Fixed

    • Avoid name clashes with the Error class. (#590)

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ Return a safer default NotAuthorizedError message. (#583)