Rails 4 compatibility update.