Class: Maquina::ApplicationPolicy

Inherits:
ActionPolicy::Base
  • Object
show all
Defined in:
app/policies/maquina/application_policy.rb

Instance Method Summary collapse

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/policies/maquina/application_policy.rb', line 17

def create?
  new?
end

#destroy?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'app/policies/maquina/application_policy.rb', line 29

def destroy?
  false
end

#edit?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/policies/maquina/application_policy.rb', line 21

def edit?
  false
end

#index?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'app/policies/maquina/application_policy.rb', line 5

def index?
  false
end

#new?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/policies/maquina/application_policy.rb', line 13

def new?
  false
end

#new_modal?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'app/policies/maquina/application_policy.rb', line 33

def new_modal?
  false
end

#show?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/policies/maquina/application_policy.rb', line 9

def show?
  false
end

#update?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/policies/maquina/application_policy.rb', line 25

def update?
  edit?
end