Module: Policy::DefaultPolicy

Included in:
Policy
Defined in:
app/policies/policy.rb

Instance Method Summary collapse

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


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

def create?
  new?
end

#destroy?Boolean

Returns:

  • (Boolean)


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

def destroy?
  edit?
end

#edit?Boolean

Returns:

  • (Boolean)


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

def edit?
  false
end

#indexObject



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

def index
  false
end

#new?Boolean

Returns:

  • (Boolean)


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

def new?
  false
end

#show?Boolean

Returns:

  • (Boolean)


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

def show?
  false
end

#update?Boolean

Returns:

  • (Boolean)


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

def update?
  edit?
end