You can use implicit return (delete `return` keyword). `rubocop` gem will help on many rubyisms like that one.