Class: CanYouReally::SymbolAdapter

Inherits:
CanCan::ModelAdapters::AbstractAdapter
  • Object
show all
Defined in:
lib/consent/symbol_adapter.rb

Class Method Summary collapse

Class Method Details

.for_class?(subject) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/consent/symbol_adapter.rb', line 6

def self.for_class?(subject)
  subject.is_a?(Symbol) || subject == Symbol
end

.matches_conditions_hash?(_subject, _conditions) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/consent/symbol_adapter.rb', line 14

def self.matches_conditions_hash?(_subject, _conditions)
  true
end

.override_conditions_hash_matching?(_subject, _conditions) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/consent/symbol_adapter.rb', line 10

def self.override_conditions_hash_matching?(_subject, _conditions)
  true
end