Module: TheRole::Controller

Defined in:
app/controllers/concerns/the_role/controller.rb

Instance Method Summary collapse

Instance Method Details

#login_requiredObject



3
4
5
# File 'app/controllers/concerns/the_role/controller.rb', line 3

def 
  send TheRole.config.
end

#role_access_deniedObject



7
8
9
10
11
12
# File 'app/controllers/concerns/the_role/controller.rb', line 7

def role_access_denied
  access_denied_method = TheRole.config.access_denied_method
  return send(access_denied_method) if access_denied_method && respond_to?(access_denied_method)

  the_role_default_access_denied_response
end