lib/arrthorizer/role.rb in arrthorizer-0.1.0.pre2 vs lib/arrthorizer/role.rb in arrthorizer-0.1.0
- old
+ new
@@ -1,9 +1,9 @@
# This is the abstract superclass for all roles in the hierarchy.
module Arrthorizer
class Role
# Template method: This method is implemented in the
- # ContextRole subclasses.
+ # ContextRole subclasses and Group.
def applies_to_user?(user, context = {})
raise NotImplementedError, "#{self.name} does not implement #applies_to_user?(user, context)"
end
def self.get(name_or_role)