module Eaco::Adapters::CouchrestModel
CouchRest::Model backing store for ACLs, that naively uses property
. As the ACL
class is an Hash
, it gets unserialized automagically by CouchRest guts.
@see ACL
@see CouchDBLucene
:nocov: because there are too many moving parts here and anyway we are going to deprecate this in favour of jsonb
Public Class Methods
included(base)
click to toggle source
Defines the acl
property on the given model
@param base [CouchRest::Model] your model class.
@return [void]
# File lib/eaco/adapters/couchrest_model.rb, line 31 def self.included(base) base.instance_eval do property :acl, acl end end
strategies()
click to toggle source
Returns currently available collection extraction strategies.
# File lib/eaco/adapters/couchrest_model.rb, line 20 def self.strategies {lucene: CouchDBLucene} end