README.md in consul-0.11.1 vs README.md in consul-0.11.2
- old
+ new
@@ -612,10 +612,10 @@
In such cases your model should simply skip authorization and assume that all users are accessible:
class UserReport
def data
- accessible_users = Power.current.present? Power.current.users || User
+ accessible_users = Power.current.present? ? Power.current.users : User
accessible_users.collect do |user|
[user.name, user.email, user.income]
end
end