lib/neo4j/shared/validations.rb in neo4j-7.2.3 vs lib/neo4j/shared/validations.rb in neo4j-8.0.0.alpha.1
- old
+ new
@@ -13,14 +13,10 @@
# replaced with this when the validations module is mixed in, which it is by default.
# @param [Hash] options the options to create a message with.
# @option options [true, false] :validate if false no validation will take place
# @return [Boolean] true if it saved it successfully
def save(options = {})
- result = perform_validations(options) ? super : false
- if !result
- Neo4j::Transaction.current.failure if Neo4j::Transaction.current
- end
- result
+ perform_validations(options) ? super : false
end
# @return [Boolean] true if valid
def valid?(context = nil)
context ||= (new_record? ? :create : :update)