rubocop -a
Caveat: This adds a little time overhead to saving. When you're editing many files at once (e.g. using "Replace All"), this may be inacceptable.
Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.