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
Posted by Henning Koch to makandra dev (2013-01-14 17:01)