Hook inf-ruby-minor-mode to ruby-mode-hook.