Module: Elastictastic::Callbacks

Extended by:
ActiveSupport::Concern
Defined in:
lib/elastictastic/callbacks.rb

Constant Summary collapse

HOOKS =
[:save, :create, :update, :destroy]

Instance Method Summary collapse

Instance Method Details

#create(options = {}) ⇒ Object


16
17
18
# File 'lib/elastictastic/callbacks.rb', line 16

def create(options = {})
  with_callbacks(:create, options) { super }
end

#destroy(options = {}) ⇒ Object


24
25
26
# File 'lib/elastictastic/callbacks.rb', line 24

def destroy(options = {})
  with_callbacks(:destroy, options) { super }
end

#save(options = {}) ⇒ Object


12
13
14
# File 'lib/elastictastic/callbacks.rb', line 12

def save(options = {})
  with_callbacks(:save, options) { super }
end

#update(options = {}) ⇒ Object


20
21
22
# File 'lib/elastictastic/callbacks.rb', line 20

def update(options = {})
  with_callbacks(:update, options) { super }
end