Module: Sequel::Plugins::InstanceHooks::InstanceMethods

Defined in:
lib/sequel/lib/sequel/plugins/instance_hooks.rb

Constant Summary collapse

HOOKS =
Sequel::Model::HOOKS - [:after_initialize]

Instance Method Summary collapse

Instance Method Details

#after_saveObject

Clear the instance level hooks after saving the object.


24
25
26
27
28
# File 'lib/sequel/lib/sequel/plugins/instance_hooks.rb', line 24

def after_save
  super
  run_instance_hooks(:after_save)
  @instance_hooks.clear if @instance_hooks
end