Consul 0.5.0 is faster for admins, allows to define multiple powers at once

Posted . Visible to the public.

When calling a scope like current_power.user?(user), Consul will no longer trigger a query if the users power selects all records (SELECT * from users). This should make such checks much faster for users who can access many records, like admins.

You can now define multiple powers at once:

power :users, :updatable_users, :creatable_users do
  ...
end
Profile picture of Henning Koch
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-01-14 17:01)