Pundit v1.0.0 Release Notes

Release Date: 2015-04-19 // over 6 years ago
    • Caches policy scopes and policies.
    • ๐Ÿšš Explicitly setting the policy for the controller via controller.policy = foo has been removed. Instead use controller.policies[record] = foo.
    • ๐Ÿšš Explicitly setting the policy scope for the controller via controller.policy_policy = foo has been removed. Instead use controller.policy_scopes[scope] = foo.
    • โž• Add permitted_attributes helper to fetch attributes from policy.
    • Add pundit_policy_authorized? and pundit_policy_scoped? methods.
    • ๐Ÿ›  Instance variables are prefixed to avoid collisions.
    • โž• Add Pundit.authorize method.
    • Add skip_authorization and skip_policy_scope helpers.
    • ๐Ÿ‘ Better errors when checking multiple permissions in RSpec tests.
    • ๐Ÿ‘ Better errors in case nil is passed to policy or policy_scope.
    • ๐Ÿ–จ Use inspect when printing object for better errors.
    • โฌ‡๏ธ Dropped official support for Ruby 1.9.3