Module: Neo4j::Rails::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
Model, Relationship
Defined in:
lib/neo4j/rails/callbacks.rb

Overview

:nodoc:

Constant Summary

CALLBACKS =
[
:after_initialize, :before_validation, :after_validation,
:before_create, :around_create, :after_create,
:before_destroy, :around_destroy, :after_destroy,
:before_save, :around_save, :after_save,
:before_update, :around_update, :after_update,
].freeze

Instance Method Summary (collapse)

Instance Method Details

- (Object) destroy_with_callbacks

:nodoc:



29
30
31
# File 'lib/neo4j/rails/callbacks.rb', line 29

def destroy_with_callbacks #:nodoc:
	_run_destroy_callbacks { destroy_without_callbacks }
end

- (Boolean) valid_with_callbacks?

:nodoc:

Returns:

  • (Boolean)


25
26
27
# File 'lib/neo4j/rails/callbacks.rb', line 25

def valid_with_callbacks?(*) #:nodoc:
  _run_validation_callbacks { valid_without_callbacks? }
end