Use the correct syntax for conditions in Rails 4.