Module: Typus::Authentication::Base
- Included in:
- Devise, HttpBasic, None, NoneWithRole, Session
- Defined in:
- lib/typus/authentication/base.rb
Instance Method Summary collapse
- #admin_user ⇒ Object
- #authenticate ⇒ Object
- #check_if_user_can_perform_action_on_resource ⇒ Object
- #check_if_user_can_perform_action_on_resources ⇒ Object
- #check_if_user_can_perform_action_on_user ⇒ Object
- #check_resource_ownership ⇒ Object
- #check_resources_ownership ⇒ Object
- #current_role ⇒ Object
- #set_attributes_on_create ⇒ Object
- #set_attributes_on_update ⇒ Object
Instance Method Details
#admin_user ⇒ Object
5 6 7 |
# File 'lib/typus/authentication/base.rb', line 5 def admin_user @admin_user end |
#authenticate ⇒ Object
13 |
# File 'lib/typus/authentication/base.rb', line 13 def authenticate; end |
#check_if_user_can_perform_action_on_resource ⇒ Object
16 |
# File 'lib/typus/authentication/base.rb', line 16 def check_if_user_can_perform_action_on_resource; end |
#check_if_user_can_perform_action_on_resources ⇒ Object
15 |
# File 'lib/typus/authentication/base.rb', line 15 def check_if_user_can_perform_action_on_resources; end |
#check_if_user_can_perform_action_on_user ⇒ Object
14 |
# File 'lib/typus/authentication/base.rb', line 14 def check_if_user_can_perform_action_on_user; end |
#check_resource_ownership ⇒ Object
17 |
# File 'lib/typus/authentication/base.rb', line 17 def check_resource_ownership; end |
#check_resources_ownership ⇒ Object
18 |
# File 'lib/typus/authentication/base.rb', line 18 def check_resources_ownership; end |
#current_role ⇒ Object
9 10 11 |
# File 'lib/typus/authentication/base.rb', line 9 def current_role admin_user.role.to_sym end |
#set_attributes_on_create ⇒ Object
19 |
# File 'lib/typus/authentication/base.rb', line 19 def set_attributes_on_create; end |
#set_attributes_on_update ⇒ Object
20 |
# File 'lib/typus/authentication/base.rb', line 20 def set_attributes_on_update; end |