Class: Rolify::Adapter::RoleAdapterBase
- Inherits:
-
Base
- Object
- Base
- Rolify::Adapter::RoleAdapterBase
show all
- Defined in:
- lib/rolify/adapters/base.rb
Instance Method Summary
collapse
Methods inherited from Base
create, #initialize, #role_class, #role_table, #user_class
Instance Method Details
#add(relation, role_name, resource = nil) ⇒ Object
37
38
39
|
# File 'lib/rolify/adapters/base.rb', line 37
def add(relation, role_name, resource = nil)
raise NotImplementedError.new("You must implement add")
end
|
#exists?(relation, column) ⇒ Boolean
45
46
47
|
# File 'lib/rolify/adapters/base.rb', line 45
def exists?(relation, column)
raise NotImplementedError.new("You must implement exists?")
end
|
#find_or_create_by(role_name, resource_type = nil, resource_id = nil) ⇒ Object
33
34
35
|
# File 'lib/rolify/adapters/base.rb', line 33
def find_or_create_by(role_name, resource_type = nil, resource_id = nil)
raise NotImplementedError.new("You must implement find_or_create_by")
end
|
#remove(relation, role_name, resource = nil) ⇒ Object
41
42
43
|
# File 'lib/rolify/adapters/base.rb', line 41
def remove(relation, role_name, resource = nil)
raise NotImplementedError.new("You must implement delete")
end
|
#where(relation, args) ⇒ Object
29
30
31
|
# File 'lib/rolify/adapters/base.rb', line 29
def where(relation, args)
raise NotImplementedError.new("You must implement where")
end
|