lib/yao/resources/restfully_accessible.rb in yao-0.2.10 vs lib/yao/resources/restfully_accessible.rb in yao-0.2.11

- old
+ new

@@ -49,10 +49,10 @@ def client if @admin Yao.default_client.admin_pool[service] else Yao.default_client.pool[service] - end + end or raise "You do not have #{@admin ? 'admin' : 'public'} access to the #{service} service" end def as_member(&blk) if @admin @admin = false