Class: Lolita::Extensions::Authorization::DefaultAdapter
- Defined in:
- lib/lolita/extensions/authorization/default_adapter.rb
Instance Method Summary collapse
- #authorize!(*args) ⇒ Object
- #can?(*args) ⇒ Boolean
- #cannot?(*args) ⇒ Boolean
- #current_ability(*args) ⇒ Object
-
#initialize(*args) ⇒ DefaultAdapter
constructor
A new instance of DefaultAdapter.
Constructor Details
#initialize(*args) ⇒ DefaultAdapter
Returns a new instance of DefaultAdapter.
7 8 |
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 7 def initialize *args end |
Instance Method Details
#authorize!(*args) ⇒ Object
21 22 23 |
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 21 def *args true end |
#can?(*args) ⇒ Boolean
10 11 12 |
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 10 def can? *args true end |
#cannot?(*args) ⇒ Boolean
14 15 16 |
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 14 def cannot? *args false end |
#current_ability(*args) ⇒ Object
18 19 |
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 18 def current_ability *args end |