Class: Ddr::Auth::AbstractAbility Abstract
- Inherits:
-
Object
- Object
- Ddr::Auth::AbstractAbility
- Includes:
- CanCan::Ability
- Defined in:
- lib/ddr/auth/abstract_ability.rb
Overview
This class is abstract.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#auth_context ⇒ Object
readonly
Returns the value of attribute auth_context.
Instance Method Summary collapse
- #cache ⇒ Object
-
#initialize(auth_context) ⇒ AbstractAbility
constructor
A new instance of AbstractAbility.
Constructor Details
#initialize(auth_context) ⇒ AbstractAbility
Returns a new instance of AbstractAbility.
26 27 28 29 30 31 32 |
# File 'lib/ddr/auth/abstract_ability.rb', line 26 def initialize(auth_context) @auth_context = auth_context if exclude_default_aliases clear_aliased_actions end apply_ability_definitions end |
Instance Attribute Details
#auth_context ⇒ Object (readonly)
Returns the value of attribute auth_context.
20 21 22 |
# File 'lib/ddr/auth/abstract_ability.rb', line 20 def auth_context @auth_context end |
Instance Method Details
#cache ⇒ Object
34 35 36 |
# File 'lib/ddr/auth/abstract_ability.rb', line 34 def cache @cache ||= {} end |