Module: CanTango::Model::Scope
- Defined in:
- lib/cantango/model/scope.rb
Defined Under Namespace
Modules: ClassMethods
Classes: AllowedActions
Class Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
3
4
5
6
7
|
# File 'lib/cantango/model/scope.rb', line 3
def self.included(base)
base.send :include, CanTango::Api::User::Ability
base.extend CanTango::Api::User::Ability
base.extend ClassMethods
end
|
.rest_actions ⇒ Object
9
10
11
|
# File 'lib/cantango/model/scope.rb', line 9
def self.rest_actions
[:read, :access, :write, :manage, :edit, :create, :delete]
end
|