Class: Maquina::ApplicationPolicy
- Inherits:
-
ActionPolicy::Base
- Object
- ActionPolicy::Base
- Maquina::ApplicationPolicy
show all
- Defined in:
- app/policies/maquina/application_policy.rb
Instance Method Summary
collapse
Instance Method Details
#create? ⇒ Boolean
17
18
19
|
# File 'app/policies/maquina/application_policy.rb', line 17
def create?
new?
end
|
#destroy? ⇒ Boolean
29
30
31
|
# File 'app/policies/maquina/application_policy.rb', line 29
def destroy?
false
end
|
#edit? ⇒ Boolean
21
22
23
|
# File 'app/policies/maquina/application_policy.rb', line 21
def edit?
false
end
|
#index? ⇒ Boolean
5
6
7
|
# File 'app/policies/maquina/application_policy.rb', line 5
def index?
false
end
|
#new? ⇒ Boolean
13
14
15
|
# File 'app/policies/maquina/application_policy.rb', line 13
def new?
false
end
|
#new_modal? ⇒ Boolean
33
34
35
|
# File 'app/policies/maquina/application_policy.rb', line 33
def new_modal?
false
end
|
#show? ⇒ Boolean
9
10
11
|
# File 'app/policies/maquina/application_policy.rb', line 9
def show?
false
end
|
#update? ⇒ Boolean
25
26
27
|
# File 'app/policies/maquina/application_policy.rb', line 25
def update?
edit?
end
|