You can probably replace .reject(&:blank?) with .compact
It does the same thing