def execute_hooks_for(type, name)
      model.hooks[name][type].each { |hook| hook.call(self) }
    end
def execute_hooks_for(type, name)
      model.hooks[name][type].each { |hook| hook.call(self) }
    end
Execute all the queued up hooks for a given type and name

 @param [Symbol] type
   the type of hook to execute (before or after)
 @param [Symbol] name
   the name of the hook to execute

 @return [undefined]

 @api private