Method: Sequel::Plugins::HookClassMethods.apply

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

.apply(model) ⇒ Object

Set up the hooks instance variable in the model.

[View source]

35
36
37
38
# File 'lib/sequel/plugins/hook_class_methods.rb', line 35

def self.apply(model)
  hooks = model.instance_variable_set(:@hooks, {})
  Model::HOOKS.each{|h| hooks[h] = []}
end