module PolicyDefaults

Defaults for Policy::Base

Constants

DEFAULT_ASSOCIATED_ROLES

defaults to this when no associated_as roles have been provided. It is also merged to the provided roles

RESTRICTED_CREATE_ASSOCIATIONS

restricted associations for create

RESTRICTED_CREATE_ATTRIBUTES

restricted attributes for create

RESTRICTED_SAVE_ASSOCIATIONS

restricted associations for save

RESTRICTED_SAVE_ATTRIBUTES

restricted attributes for save

RESTRICTED_SHOW_ASSOCIATIONS

restricted associations for show

RESTRICTED_SHOW_ATTRIBUTES

restricted attributes for show

RESTRICTED_UPDATE_ASSOCIATIONS

restricted associations for update

RESTRICTED_UPDATE_ATTRIBUTES

restricted attributes for update

Public Instance Methods

create?() click to toggle source

default create? method

# File lib/pundit_roles/policy/policy_defaults.rb, line 14
def create?
  false
end
destroy?() click to toggle source

default destroy? method

# File lib/pundit_roles/policy/policy_defaults.rb, line 24
def destroy?
  false
end
index?() click to toggle source

default index? method

# File lib/pundit_roles/policy/policy_defaults.rb, line 4
def index?
  false
end
show?() click to toggle source

default show? method

# File lib/pundit_roles/policy/policy_defaults.rb, line 9
def show?
  false
end
update?() click to toggle source

default update? method

# File lib/pundit_roles/policy/policy_defaults.rb, line 19
def update?
  false
end