Module: Policy::DefaultPolicy

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

Instance Method Summary collapse

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'app/policies/policy.rb', line 11

def create?
  new?
end

#destroy?Boolean

Returns:

  • (Boolean)

27
28
29
# File 'app/policies/policy.rb', line 27

def destroy?
  edit?
end

#edit?Boolean

Returns:

  • (Boolean)

19
20
21
# File 'app/policies/policy.rb', line 19

def edit?
  false
end

#indexObject


3
4
5
# File 'app/policies/policy.rb', line 3

def index
  false
end

#new?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'app/policies/policy.rb', line 7

def new?
  false
end

#show?Boolean

Returns:

  • (Boolean)

15
16
17
# File 'app/policies/policy.rb', line 15

def show?
  false
end

#update?Boolean

Returns:

  • (Boolean)

23
24
25
# File 'app/policies/policy.rb', line 23

def update?
  edit?
end