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
- #create(options = {}) ⇒ Object
- #destroy(options = {}) ⇒ Object
- #save(options = {}) ⇒ Object
- #update(options = {}) ⇒ Object
Instance Method Details
#create(options = {}) ⇒ Object
16 17 18 |
# File 'lib/elastictastic/callbacks.rb', line 16 def create( = {}) with_callbacks(:create, ) { super } end |
#destroy(options = {}) ⇒ Object
24 25 26 |
# File 'lib/elastictastic/callbacks.rb', line 24 def destroy( = {}) with_callbacks(:destroy, ) { super } end |
#save(options = {}) ⇒ Object
12 13 14 |
# File 'lib/elastictastic/callbacks.rb', line 12 def save( = {}) with_callbacks(:save, ) { super } end |
#update(options = {}) ⇒ Object
20 21 22 |
# File 'lib/elastictastic/callbacks.rb', line 20 def update( = {}) with_callbacks(:update, ) { super } end |