Sha256: 4d8ffbb4ccb6f35d923675ef5fbf55ee24df4bdad15a010a3a44373cd4ed4035

Contents?: true

Size: 427 Bytes

Versions: 201

Compression:

Stored size: 427 Bytes

Contents

module Neo4j
  module ActiveRel
    module Callbacks #:nodoc:
      extend ActiveSupport::Concern
      include Neo4j::Shared::Callbacks

      def save(*args)
        unless _persisted_obj || (from_node.respond_to?(:neo_id) && to_node.respond_to?(:neo_id))
          fail Neo4j::ActiveRel::Persistence::RelInvalidError, 'from_node and to_node must be node objects'
        end
        super(*args)
      end
    end
  end
end

Version data entries

201 entries across 201 versions & 3 rubygems

Version Path
neo4j-7.2.2 lib/neo4j/active_rel/callbacks.rb
neo4j-7.1.4 lib/neo4j/active_rel/callbacks.rb
neo4j-7.0.16 lib/neo4j/active_rel/callbacks.rb
neo4j-7.2.1 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.10 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.9 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.8 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.7 lib/neo4j/active_rel/callbacks.rb
neo4j_legacy-7.2.0.2 lib/neo4j/active_rel/callbacks.rb
neo4j_legacy-7.2.0.1 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.6 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.5 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.4 lib/neo4j/active_rel/callbacks.rb
neo4j-7.2.0 lib/neo4j/active_rel/callbacks.rb
neo4j-7.1.3 lib/neo4j/active_rel/callbacks.rb
neo4j-7.0.15 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.2 lib/neo4j/active_rel/callbacks.rb
neo4j-8.0.0.alpha.1 lib/neo4j/active_rel/callbacks.rb
neo4j-7.1.2 lib/neo4j/active_rel/callbacks.rb
neo4j-7.1.1 lib/neo4j/active_rel/callbacks.rb