- Roles and permitted options are no longer separately declared with
role
andpermitted_for
methods. Declaration of options has been consolidated into therole
method. - Roles can no longer be inherited from the superclass.
- Test conditions for the roles are now guessed from the name of the role,
instead of being declared explicitly with the
authorize_with
option. - Policy instance variable
@record
renamed@resource
authorize
method has been renamed toauthorize!
- added support for limiting scopes, can be called with
policy_scope!