Sha256: 63e1be5f7b91228a02f978baa8db01688746d196edaded9ddac23a4a47d8de24

Contents?: true

Size: 541 Bytes

Versions: 6

Compression:

Stored size: 541 Bytes

Contents

module LucidArango
  module DocumentCollection
    module Mixin
      def self.included(base)
        if RUBY_ENGINE != 'opal'
          unless base == LucidArango::DocumentCollection::Base
            Isomorfeus.add_valid_data_class(base)
            base.prop :pub_sub_client, default: nil
            base.prop :current_user, default: Anonymous.new
          end
        end

        base.include(Enumerable)
        base.extend(LucidPropDeclaration::Mixin)

        # TODO implement, depends on arango-driver
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
isomorfeus-data-1.0.0.zeta12 lib/lucid_arango/collection/mixin.rb
isomorfeus-data-1.0.0.zeta11 lib/lucid_arango/collection/mixin.rb
isomorfeus-data-1.0.0.zeta10 lib/lucid_arango/collection/mixin.rb
isomorfeus-data-1.0.0.zeta9 lib/lucid_arango/collection/mixin.rb
isomorfeus-data-1.0.0.zeta8 lib/lucid_arango/collection/mixin.rb
isomorfeus-data-1.0.0.zeta6 lib/lucid_arango/collection/mixin.rb