module Hooks::ClassMethods

def run_hook_for(name, scope, *args)

def run_hook_for(name, scope, *args)
  callbacks_for_hook(name).each do |callback|
    if callback.kind_of? Symbol
      scope.send(callback, *args)
    else
      scope.instance_exec(*args, &callback)
    end
  end
end