Class: AdminUserBasePolicy

Inherits:
ApplicationPolicy show all
Defined in:
app/policies/admin_user_base_policy.rb

Overview

Default policies for admin_users

Direct Known Subclasses

AdminUsers::WelcomePolicy

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from ApplicationPolicy

#edit?, #initialize, #new?

Constructor Details

This class inherits a constructor from ApplicationPolicy

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)

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

def create?
  base_can?
end

#destroy?Boolean

Returns:

  • (Boolean)

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

def destroy?
  base_can?
end

#index?Boolean

Returns:

  • (Boolean)

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

def index?
  base_can?
end

#show?Boolean

Returns:

  • (Boolean)

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

def show?
  base_can?
end

#update?Boolean

Returns:

  • (Boolean)

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

def update?
  base_can?
end