An anniversary release of fixes and hacks, introduced by venerable users of the plugin.
- Allow for inheritance of subject (Jeff Jaco)
- Renamed “Object” module in extensions, since it caused some breakage inside activesupport
(invisiblelama). show_to
helper for usage in views (Antono Vasiljev):association_name
config option, now you can change Subject#role_objects to whatever
you want (Jeff Tucker).- Fix bug when Subject#id is a string, e.g. UUID (Julien Bachmann)
- Bug with action blocks when using anonymous and another role (Franck)
- :protect_global_roles
- Subject#roles renamed to Subject#role_objects
- Fix namespaced models in roles backend (thanks goes to Tomas Jogin)
- Action name override in boolean methods.
:query_method
option foraccess_control
.
- Use context+matchy combo for testing
- Bugfix: unwanted double quote in generated SQL statement
- Introduce :if and :unless rule options.
- Fix bug in delete_role – didn’t work with custom class names
- Add
:helper
option foraccess_control
. - Ability to generate helper methods directly (place
include Acl9Helpers
in your helper module).
access_control :method do end
as shorter form foraccess_control :as_method => :method do end
.- Boolean method can now receive an objects hash which will be looked into first before taking
an instance variable.
Initial release.