lib/neo4j/active_rel/callbacks.rb in neo4j-4.0.0 vs lib/neo4j/active_rel/callbacks.rb in neo4j-4.1.0
- old
+ new
@@ -4,12 +4,12 @@
extend ActiveSupport::Concern
include Neo4j::Shared::Callbacks
def save(*args)
unless self.persisted? || (from_node.respond_to?(:neo_id) && to_node.respond_to?(:neo_id))
- raise Neo4j::ActiveRel::Persistence::RelInvalidError, 'from_node and to_node must be node objects'
- end
+ fail Neo4j::ActiveRel::Persistence::RelInvalidError, 'from_node and to_node must be node objects'
+ end
super(*args)
end
end
end
-end
\ No newline at end of file
+end