Module: CanTango::Model::Scope::ClassMethods

Defined in:
lib/cantango/model/scope.rb

Instance Method Summary collapse

Instance Method Details

#allowed_to(*actions) ⇒ Object



50
51
52
# File 'lib/cantango/model/scope.rb', line 50

def allowed_to *actions
  CanTango::Model::Scope::AllowedActions.new self, :can, *actions
end

#not_allowed_to(*actions) ⇒ Object



54
55
56
# File 'lib/cantango/model/scope.rb', line 54

def not_allowed_to *actions
  CanTango::Model::Scope::AllowedActions.new self, :cannot, *actions
end