Update hooks.rb