lib/cuba_api/guard.rb in cuba-api-0.3.3 vs lib/cuba_api/guard.rb in cuba-api-0.4.0

- old
+ new

@@ -20,10 +20,11 @@ # # -*- Coding: utf-8 -*- module CubaApi module Guard + warn 'DEPRECATED: guard will disappear as it is now' def allowed?( *group_names ) authenticated? && ( allowed_groups( *group_names ).size > 0 ) end def allowed_groups( *group_names ) @@ -32,6 +33,6 @@ def current_groups current_user.groups end end -end \ No newline at end of file +end