The style guide recommends using {} is in a one-line context, do end for multi-liners.
https://github.com/mdsol/ruby-style-guide
But here, a one-liner would work.