Sha256: 5be4145d7a530ea87b0c371db62b81d4de2fc88ccf568af2cb6d85d932882980

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

module LucidArango
  module EdgeCollection
    module Mixin
      def self.included(base)
        if RUBY_ENGINE != 'opal'
          unless base == LucidArango::EdgeCollection::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/edge_collection/mixin.rb
isomorfeus-data-1.0.0.zeta11 lib/lucid_arango/edge_collection/mixin.rb
isomorfeus-data-1.0.0.zeta10 lib/lucid_arango/edge_collection/mixin.rb
isomorfeus-data-1.0.0.zeta9 lib/lucid_arango/edge_collection/mixin.rb
isomorfeus-data-1.0.0.zeta8 lib/lucid_arango/edge_collection/mixin.rb
isomorfeus-data-1.0.0.zeta6 lib/lucid_arango/edge_collection/mixin.rb