Changing hooks to after_rails.