Fix Rails 4.2