Spaces around your braces seems inconsistent here. I would recommend a space before and after each like the Github Ruby style guide.