Sha256: ee1b6a56f86982d18b446fe4a5560e83dd87d0653b070a7d4842bb7197645a87

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

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

      def save(*args)
        raise Neo4j::ActiveRel::Persistence::RelInvalidError.new(self) unless self.persisted? || (from_node.respond_to?(:neo_id) && to_node.respond_to?(:neo_id))
        super(*args)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neo4j-3.0.0.rc.3 lib/neo4j/active_rel/callbacks.rb
neo4j-3.0.0.rc.2 lib/neo4j/active_rel/callbacks.rb
neo4j-3.0.0.alpha.11 lib/neo4j/active_rel/callbacks.rb
neo4j-3.0.0.alpha.10 lib/neo4j/active_rel/callbacks.rb