Class: Lolita::Extensions::Authorization::DefaultAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/lolita/extensions/authorization/default_adapter.rb

Instance Method Summary collapse

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 authorize! *args
  true
end

#can?(*args) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lolita/extensions/authorization/default_adapter.rb', line 10

def can? *args
  true
end

#cannot?(*args) ⇒ Boolean

Returns:

  • (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