class Rolify::Adapter::RoleAdapterBase

Public Instance Methods

add(relation, role_name, resource = nil) click to toggle source
# File lib/rolify/adapters/base.rb, line 41
def add(relation, role_name, resource = nil)
  raise NotImplementedError.new("You must implement add")
end
exists?(relation, column) click to toggle source
# File lib/rolify/adapters/base.rb, line 49
def exists?(relation, column)
  raise NotImplementedError.new("You must implement exists?")
end
find_or_create_by(role_name, resource_type = nil, resource_id = nil) click to toggle source
# File lib/rolify/adapters/base.rb, line 37
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) click to toggle source
# File lib/rolify/adapters/base.rb, line 45
def remove(relation, role_name, resource = nil)
  raise NotImplementedError.new("You must implement delete")
end
where(relation, args) click to toggle source
# File lib/rolify/adapters/base.rb, line 33
def where(relation, args)
  raise NotImplementedError.new("You must implement where")
end