Class: InvitePolicy
Instance Attribute Summary
Attributes inherited from Policy
#record, #user
Instance Method Summary
collapse
Methods inherited from Policy
collection, for, #initialize, member
#create?, #destroy?, #index, #update?
Constructor Details
This class inherits a constructor from Policy
Instance Method Details
#accept? ⇒ Boolean
24
25
26
|
# File 'app/policies/invite_policy.rb', line 24
def accept?
true
end
|
#edit? ⇒ Boolean
20
21
22
|
# File 'app/policies/invite_policy.rb', line 20
def edit?
user.role?(:users)
end
|
#index? ⇒ Boolean
4
5
6
|
# File 'app/policies/invite_policy.rb', line 4
def index?
true
end
|
#new? ⇒ Boolean
12
13
14
|
# File 'app/policies/invite_policy.rb', line 12
def new?
user.role?(:users)
end
|
#policies? ⇒ Boolean
28
29
30
|
# File 'app/policies/invite_policy.rb', line 28
def policies?
user.role?(:users)
end
|
#reorder? ⇒ Boolean
8
9
10
|
# File 'app/policies/invite_policy.rb', line 8
def reorder?
user.role?(:users)
end
|
#show? ⇒ Boolean
16
17
18
|
# File 'app/policies/invite_policy.rb', line 16
def show?
true
end
|