Module: ActiveGraph::Relationship::Callbacks
- Extended by:
 - ActiveSupport::Concern
 
- Includes:
 - Shared::Callbacks
 
- Included in:
 - ActiveGraph::Relationship
 
- Defined in:
 - lib/active_graph/relationship/callbacks.rb
 
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Shared::Callbacks
#conditional_callback, #initialize, #touch
Instance Method Details
#destroy ⇒ Object
      14 15 16 17 18  | 
    
      # File 'lib/active_graph/relationship/callbacks.rb', line 14 def destroy to_node.callbacks_from_relationship(self, :in, from_node).try(:last) from_node.callbacks_from_relationship(self, :out, to_node).try(:last) super end  | 
  
#save(*args) ⇒ Object
      7 8 9 10 11 12  | 
    
      # File 'lib/active_graph/relationship/callbacks.rb', line 7 def save(*args) unless _persisted_obj || (from_node.respond_to?(:neo_id) && to_node.respond_to?(:neo_id)) fail ActiveGraph::Relationship::Persistence::RelInvalidError, 'from_node and to_node must be node objects' end super(*args) end  |