The Ruby best practice would be to use && instead of and. I'm not sure how the rest of the codebase uses this. If it's appropriate I would make that change.